This identity's canonical public key.
Create directly signed, self-encrypted kind-30079 data.
Create one directly signed generic NIP-78 value.
Create one complete canonical kind-14 chat rumor.
Create one canonical private deletion request.
Create one canonical text-and-emoji edit.
Create one canonical private author-copy contact list.
Create one minimal one-to-one NIP-17 text-message rumor.
Create one signed challenge-bound NIP-42 AUTH event.
Create one immutable NIP-98 authorization plan.
Create one unsigned rumor authored by this identity.
Create one ephemeral typing rumor.
Create canonical private kind-0 user metadata.
Authenticate and decrypt a plain received message as UTF-8.
Authenticate and decrypt one self-authored kind-30079 event.
Encrypt one non-empty UTF-8 message.
Irreversibly erase native secret state and release the Wasm handle.
Create one fresh NIP-59 envelope for exactly one recipient.
Return a description that never includes secret key material.
Authenticate every NIP-59 layer and return the enclosed rumor.
StaticimportImport exactly 32 secret-key bytes into Wasm-owned state.
A local identity held by one WebAssembly instance.
Import synchronously copies the supplied bytes into Wasm. Callers should clear their own
Uint8Arrayafter import. Keep the identity in an ordinaryconst; an internal finalizer reclaims the Wasm allocation.erase()is an optional security action for logout or early key removal. It is deterministic and idempotent; later operations fail withidentity_erased.