MCPcopy Create free account
hub / github.com/AztecProtocol/aztec-packages / computeUniqueNoteHash

Function computeUniqueNoteHash

yarn-project/stdlib/src/hash/hash.ts:46–48  ·  view source on GitHub ↗
(noteNonce: Fr, siloedNoteHash: Fr)

Source from the content-addressed store, hash-verified

44 * @returns A unique note hash.
45 */
46export function computeUniqueNoteHash(noteNonce: Fr, siloedNoteHash: Fr): Promise<Fr> {
47 return poseidon2HashWithSeparator([noteNonce, siloedNoteHash], DomainSeparator.UNIQUE_NOTE_HASH);
48}
49
50/**
51 * Computes a siloed nullifier, given the contract address and the inner nullifier.

Calls 1

Tested by

no test coverage detected