Type Alias Nip44Decryptor
Nip44Decryptor: (
content: string,
authorPubkey: string,
) => string | Promise<string>
Type Declaration
- (content: string, authorPubkey: string): string | Promise<string>
Parameters
- content: string
- authorPubkey: string
Returns string | Promise<string>
A NIP-44 decryptor: takes the event's
contentand the author pubkey and returns the plaintext (a JSON array of tags). Inject your signer'snip44.decrypt(e.g. a NIP-07window.nostr.nip44, a bunker, ornostr-tools/nip44) so this package carries no crypto dependency.