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

compute_secret_hash

compute_secret_hash(secret);

Parameters

NameType
secretField

compute_unencrypted_log_hash

compute_unencrypted_log_hash(contract_address, event_selector, log);

Parameters

NameType
contract_addressAztecAddress
event_selectorField
logT

compute_message_hash

compute_message_hash(sender, chain_id, recipient, version, content, secret_hash);

Parameters

NameType
senderEthAddress
chain_idField
recipientAztecAddress
versionField
contentField
secret_hashField

compute_message_nullifier

compute_message_nullifier(message_hash, secret, leaf_index);

in the L1 to L2 message tree

Parameters

NameType
message_hashField
secretField
leaf_indexField

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.