nostr-websocket-utils / getConversationKey
getConversationKey(
senderPrivkeyHex,recipientPubkeyHex):Uint8Array
Defined in: nips/nip-44.ts:30
Creates a NIP-44 conversation key from a sender’s private key and recipient’s public key. This key is symmetric and reusable for all messages in the conversation.
string
Sender’s private key in hex
string
Recipient’s public key in hex
Uint8Array
Conversation key as Uint8Array