Skip to main content

Module note

Module note 

Source
Expand description

Note commitments - a faithful port of note.ts’s Poseidon derivations.

Note the deliberate input ordering: ownerHash and nullifier hash the same three values in a different order.

Functions§

note_id
id = Poseidon([ownerHash, amount, token]).
nullifier
nullifier = Poseidon([sharedSecret, pub.x, pub.y]).
owner_hash
ownerHash = Poseidon([pub.x, pub.y, sharedSecret]).