nostr-websocket-utils

nostr-websocket-utils v0.3.16


nostr-websocket-utils / decryptDM44

Function: decryptDM44()

decryptDM44(message, recipientPrivkey, senderPubkey, logger): string

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

Decrypts a received direct message event encrypted with NIP-44

Parameters

message

NostrWSMessage

Received message

recipientPrivkey

string

Recipient’s private key (hex)

senderPubkey

string

Sender’s public key (hex)

logger

Logger

Logger instance

Returns

string

Decrypted message content