key
key: null | Uint8Array<ArrayBufferLike> = null
Optional
ncryptsec
ncryptsec?: string
nip04
nip04: {
decrypt: (
pubkey: string,
ciphertext: string,
) => string | Promise<string>;
encrypt: (pubkey: string, plaintext: string) => string | Promise<string>;
}
nip44
nip44: {
decrypt: (
pubkey: string,
ciphertext: string,
) => string | Promise<string>;
encrypt: (pubkey: string, plaintext: string) => string | Promise<string>;
}
Optional
unlockPromise
unlockPromise?: Deferred<void>
A NIP-49 (Private Key Encryption) signer