Skip to content

Latest commit

 

History

History
47 lines (24 loc) · 737 Bytes

decryptDM.md

File metadata and controls

47 lines (24 loc) · 737 Bytes

nostr-websocket-utils v0.3.0


nostr-websocket-utils / decryptDM

Function: decryptDM()

decryptDM(message, recipientPrivkey, senderPubkey, logger): Promise<string>

Decrypts a received direct message event

Parameters

message

NostrWSMessage

Received message

recipientPrivkey

string

Recipient's private key

senderPubkey

string

Sender's public key

logger

Logger

Logger instance

Returns

Promise<string>

Decrypted message content

Defined in

nips/nip-04.ts:57