nostr-websocket-utils

nostr-websocket-utils v0.3.16


nostr-websocket-utils / decryptNip44

Function: decryptNip44()

decryptNip44(payload, recipientPrivkeyHex, senderPubkeyHex): string

Defined in: nips/nip-44.ts:61

Decrypts a NIP-44 encrypted payload

Parameters

payload

string

Encrypted payload string (base64)

recipientPrivkeyHex

string

Recipient’s private key in hex

senderPubkeyHex

string

Sender’s public key in hex

Returns

string

Decrypted plaintext