(noteNonce: Fr, siloedNoteHash: Fr)
| 44 | * @returns A unique note hash. |
| 45 | */ |
| 46 | export 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. |
no test coverage detected