Skip to content

@armada/sdk / index / encryptNoteToReceiver

Function: encryptNoteToReceiver()

encryptNoteToReceiver(note, sender, receiverViewingPublicKey): Promise<CommitmentCiphertextV2>

Defined in: src/sync/note-crypto.ts:87

Send side: encrypt note to its receiver, producing the on-chain commitment ciphertext. Replicates the engine's exact ECIES sequence — blind viewing keys (getNoteBlindingKeys), derive the shared symmetric key by ECDH against the blinded receiver key, then AES-256-GCM via encryptV2.

Parameters

note

TransactNote

sender

SenderNoteKeys

receiverViewingPublicKey

Uint8Array

Returns

Promise<CommitmentCiphertextV2>