Skip to content

@armada/sdk / index / reconstructShieldNpk

Function: reconstructShieldNpk() ​

reconstructShieldNpk(masterPublicKey, random): bigint

Defined in: src/tx/shield-fee.ts:57

Reconstruct a shield note's public key from the recipient's master public key and the note's random: npk = Poseidon(masterPublicKey, random) (engine ShieldNote.getNotePublicKey). random is 16-byte hex.

Parameters ​

masterPublicKey ​

bigint

random ​

string

Returns ​

bigint