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.

code: Rc<Vec<u8>>

Code associated with this account.

Full account commitment. The client that committed account should not change the account in other EVMs if it decides to accept the result.

Code

Fields

address: Address

Account address.

code: Rc<Vec<u8>>

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.

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

Address of this account commitment.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.