//! 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*.
use crateFr;
use crateposeidon;
/// `ownerHash = Poseidon([pub.x, pub.y, sharedSecret])`.
/// `id = Poseidon([ownerHash, amount, token])`.
/// `nullifier = Poseidon([sharedSecret, pub.x, pub.y])`.