Expand description
Domain separators used in Poseidon2 hashing throughout the protocol.
These must match the TS constants in constants.gen.ts.
Constantsยง
- AUTHWIT_
INNER - Domain separator for authwit inner hash.
- AUTHWIT_
OUTER - Domain separator for authwit outer hash.
- CONTRACT_
ADDRESS_ V1 - Domain separator for contract address V1 derivation.
- CONTRACT_
CLASS_ ID - Domain separator for contract class ID computation.
- FUNCTION_
ARGS - Domain separator for function args hashing.
- INITIALIZER
- Domain separator for initialization hash computation.
- IVSK_M
- Master incoming viewing secret key derivation.
- MESSAGE_
NULLIFIER - Message nullifier (for L1-to-L2 message consumption proofs).
- NHK_M
- Master nullifier hiding key derivation.
- NOTE_
HASH_ NONCE - Domain separator for note hash nonce computation.
- NOTE_
NULLIFIER - Domain separator for note nullifier derivation.
- OVSK_M
- Master outgoing viewing secret key derivation.
- PARTIAL_
ADDRESS - Domain separator for partial address / salted initialization hash.
- PRIVATE_
FUNCTION_ LEAF - Domain separator for private function leaf hashing.
- PRIVATE_
LOG_ FIRST_ FIELD - Domain separator for private log first field siloing.
- PRIVATE_
TX_ HASH - Domain separator for private tx hashes.
- PROTOCOL_
CONTRACTS - Domain separator for the protocol contracts tuple hash.
- PUBLIC_
BYTECODE - Domain separator for public bytecode commitment.
- PUBLIC_
CALLDATA - Domain separator for public function calldata hashing.
- PUBLIC_
KEYS_ HASH - Domain separator for public keys hash computation.
- PUBLIC_
TX_ HASH - Domain separator for public tx hashes.
- SECRET_
HASH - Secret hash (for L1-L2 messages and TransparentNote).
- SIGNATURE_
PAYLOAD - Domain separator for signature payload hashing (entrypoint encoding).
- SILOED_
NOTE_ HASH - Domain separator for siloed note hash (inner silo step).
- SILOED_
NULLIFIER - Domain separator for siloed nullifier (inner silo step).
- SILO_
NOTE_ HASH - Domain separator for siloing note hashes with a contract address.
- SILO_
NULLIFIER - Domain separator for siloing nullifiers with a contract address.
- TSK_M
- Master tagging secret key derivation.
- TX_
REQUEST - Domain separator for tx request hashes.
- UNIQUE_
NOTE_ HASH - Domain separator for unique note hash computation.