[][src]Enum ethereumvm::AccountCommitment

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),
}

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: Rc<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: Rc<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, or is a suicided account.

Methods

impl AccountCommitment[src]

pub fn address(&self) -> Address[src]

Address of this account commitment.

Trait Implementations

impl Clone for AccountCommitment[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for AccountCommitment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self