PrivateContext
When finished, one can call .finish() to convert back to the abi
Fields
Field | Type |
---|---|
inputs | PrivateContextInputs |
side_effect_counter | u32 |
min_revertible_side_effect_counter | u32 |
is_fee_payer | bool |
args_hash | Field |
return_hash | Field |
max_block_number | MaxBlockNumber |
note_hash_read_requests | BoundedVec<ReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_CALL> |
nullifier_read_requests | BoundedVec<ReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_CALL> |
key_validation_requests_and_generators | BoundedVec<KeyValidationRequestAndGenerator, MAX_KEY_VALIDATION_REQUESTS_PER_CALL> |
note_hashes | BoundedVec<NoteHash, MAX_NOTE_HASHES_PER_CALL> |
nullifiers | BoundedVec<Nullifier, MAX_NULLIFIERS_PER_CALL> |
private_call_requests | BoundedVec<PrivateCallRequest, MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL> |
public_call_requests | BoundedVec<PublicCallRequest, MAX_PUBLIC_CALL_STACK_LENGTH_PER_CALL> |
public_teardown_call_request | PublicCallRequest |
l2_to_l1_msgs | BoundedVec<L2ToL1Message, MAX_L2_TO_L1_MSGS_PER_CALL> |
historical_header | Header |
note_encrypted_logs_hashes | BoundedVec<NoteLogHash, MAX_NOTE_ENCRYPTED_LOGS_PER_CALL> |
encrypted_logs_hashes | BoundedVec<EncryptedLogHash, MAX_ENCRYPTED_LOGS_PER_CALL> |
unencrypted_logs_hashes | BoundedVec<LogHash, MAX_UNENCRYPTED_LOGS_PER_CALL> |
last_key_validation_requests | Option<KeyValidationRequest>; NUM_KEY_TYPES] |
Methods
new
PrivateContext::new(inputs, args_hash);
Parameters
Name | Type |
---|---|
inputs | PrivateContextInputs |
args_hash | Field |
msg_sender
PrivateContext::msg_sender(self);
Parameters
Name | Type |
---|---|
self |
this_address
PrivateContext::this_address(self);
Parameters
Name | Type |
---|---|
self |
chain_id
PrivateContext::chain_id(self);
Parameters
Name | Type |
---|---|
self |
version
PrivateContext::version(self);
Parameters
Name | Type |
---|---|
self |
selector
PrivateContext::selector(self);
Parameters
Name | Type |
---|---|
self |
get_args_hash
PrivateContext::get_args_hash(self);
Parameters
Name | Type |
---|---|
self |
push_note_hash
PrivateContext::push_note_hash(&mut self, note_hash);
Parameters
Name | Type |
---|---|
&mut self | |
note_hash | Field |
push_nullifier
PrivateContext::push_nullifier(&mut self, nullifier);