Skip to main content

ArgsHasher

Fields

FieldType
fieldsField]

Methods

new

ArgsHasher::new();

Takes no parameters.

add

ArgsHasher::add(&mut self, field);

Parameters

NameType
&mut self
fieldField

add_multiple

ArgsHasher::add_multiple(&mut self, fields);

Parameters

NameType
&mut self
fields[Field; N]

Standalone Functions

pedersen_commitment

pedersen_commitment(inputs, hash_index);

Parameters

NameType
inputs[Field; N]
hash_indexu32

compute_secret_hash

compute_secret_hash(secret);

Parameters

NameType
secretField

compute_unencrypted_log_hash

compute_unencrypted_log_hash(contract_address, log, );

Parameters

NameType
contract_addressAztecAddress
log[u8; N]

compute_l1_to_l2_message_hash

compute_l1_to_l2_message_hash(sender, chain_id, recipient, version, content, secret_hash, leaf_index, );

Parameters

NameType
senderEthAddress
chain_idField
recipientAztecAddress
versionField
contentField
secret_hashField
leaf_indexField

compute_l1_to_l2_message_nullifier

compute_l1_to_l2_message_nullifier(message_hash, secret);

The nullifier of a l1 to l2 message is the hash of the message salted with the secret

Parameters

NameType
message_hashField
secretField

hash

hash(self);

Parameters

NameType
self

hash_args_array

hash_args_array(args);

Parameters

NameType
args[Field; N]

hash_args

hash_args(args);

Parameters

NameType
args[Field]

compute_var_args_hash

compute_var_args_hash();

Takes no parameters.

compute_unenc_log_hash_array

compute_unenc_log_hash_array();

Takes no parameters.

compute_unenc_log_hash_addr

compute_unenc_log_hash_addr();

Takes no parameters.

compute_unenc_log_hash_str

compute_unenc_log_hash_str();

Takes no parameters.

compute_unenc_log_hash_longer_str

compute_unenc_log_hash_longer_str();

Takes no parameters.