nostr-websocket-utils

nostr-websocket-utils v0.3.16


nostr-websocket-utils / getConversationKey

Function: 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.

Parameters

senderPrivkeyHex

string

Sender’s private key in hex

recipientPubkeyHex

string

Recipient’s public key in hex

Returns

Uint8Array

Conversation key as Uint8Array