Enum evm::AccountCommitment [] [src]

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 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 of the account.

Account address.

Account balance.

Code associated with this account.

Commit only code of the account. The client can keep changing it in other EVMs if the code remains unchanged.

Fields of Code

Account address.

Code associated with this account.

Commit a storage. Must be used given a full account.

Fields of Storage

Account address.

Account storage index.

Value at the given account storage index.

Indicate that an account does not exist, or is a suicided account.

Methods

impl AccountCommitment
[src]

[src]

Address of this account commitment.

Trait Implementations

impl Debug for AccountCommitment
[src]

[src]

Formats the value using the given formatter.

impl Clone for AccountCommitment
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more