Enum sputnikvm::AccountCommitment
source · pub enum AccountCommitment {
Full {
nonce: U256,
address: Address,
balance: U256,
code: Rc<Vec<u8>>,
},
Code {
address: Address,
code: Rc<Vec<u8>>,
},
Storage {
address: Address,
index: U256,
value: M256,
},
Nonexist(Address),
}
Expand description
A single account commitment.
Variants
Full
Fields
nonce: U256
Nonce of the account.
address: Address
Account address.
balance: U256
Account balance.
Full account commitment. The client that committed account should not change the account in other EVMs if it decides to accept the result.
Code
Commit only code of the account. The client can keep changing it in other EVMs if the code remains unchanged.
Storage
Fields
address: Address
Account address.
index: U256
Account storage index.
value: M256
Value at the given account storage index.
Commit a storage. Must be used given a full account.
Nonexist(Address)
Indicate that an account does not exist, or is a suicided account.
Implementations
Trait Implementations
sourceimpl Clone for AccountCommitment
impl Clone for AccountCommitment
sourcefn clone(&self) -> AccountCommitment
fn clone(&self) -> AccountCommitment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for AccountCommitment
impl !Send for AccountCommitment
impl !Sync for AccountCommitment
impl Unpin for AccountCommitment
impl UnwindSafe for AccountCommitment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more