Module domain_separator

Module domain_separator 

Source
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.