Enum sputnikvm::AccountCommitment
[−]
[src]
pub enum AccountCommitment { Full { nonce: U256, address: Address, balance: U256, code: Vec<u8>, }, Code { address: Address, code: Vec<u8>, }, Storage { address: Address, index: U256, value: M256, }, Nonexist(Address), }
A single account commitment.
Variants
Full
Full account commitment. The client that committed account should not change the account in other EVMs if it decides to accept the result.
Fields of Full
nonce: U256 | Nonce of the account. |
address: Address | Account address. |
balance: U256 | Account balance. |
code: Vec<u8> | Code associated with this account. |
Code
Commit only code of the account. The client can keep changing it in other EVMs if the code remains unchanged.
Fields of Code
address: Address | Account address. |
code: Vec<u8> | Code associated with this account. |
Storage
Commit a storage. Must be used given a full account.
Fields of Storage
address: Address | Account address. |
index: U256 | Account storage index. |
value: M256 | Value at the given account storage index. |
Nonexist(Address)
Indicate that an account does not exist.
Methods
impl AccountCommitment
[src]
Trait Implementations
impl Debug for AccountCommitment
[src]
impl Clone for AccountCommitment
[src]
fn clone(&self) -> AccountCommitment
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more