PublicContext
Fields
Field | Type |
---|---|
pub args_hash | Option<Field> |
pub compute_args_hash | fn() -> Field |
Methods
new
PublicContext::new(compute_args_hash);
Parameters
Name | Type |
---|---|
compute_args_hash | fn( |
emit_public_log
PublicContext::emit_public_log(_self, log);
Parameters
Name | Type |
---|---|
_self | &mut Self |
log | T |
note_hash_exists
PublicContext::note_hash_exists(_self, note_hash, leaf_index);
Parameters
Name | Type |
---|---|
_self | Self |
note_hash | Field |
leaf_index | Field |
l1_to_l2_msg_exists
PublicContext::l1_to_l2_msg_exists(_self, msg_hash, msg_leaf_index);
Parameters
Name | Type |
---|---|
_self | Self |
msg_hash | Field |
msg_leaf_index | Field |
nullifier_exists
PublicContext::nullifier_exists(_self, unsiloed_nullifier, address);
Parameters
Name | Type |
---|---|
_self | Self |
unsiloed_nullifier | Field |
address | AztecAddress |
consume_l1_to_l2_message
PublicContext::consume_l1_to_l2_message(&mut self, content, secret, sender, leaf_index, );
Parameters
Name | Type |
---|---|
&mut self | |
content | Field |
secret | Field |
sender | EthAddress |
leaf_index | Field |
message_portal
PublicContext::message_portal(_self, recipient, content);