Trait parables_testing::ledger::LedgerState[][src]

pub trait LedgerState {
    type Entry;
    fn new_instance(&self) -> Self::Entry;
fn verify(
        &self,
        address: Address,
        instance: Self::Entry
    ) -> Result<(), Error>;
fn sync(
        &self,
        address: Address,
        instance: &mut Self::Entry
    ) -> Result<(), Error>; }

A state that can be verified with a virtual machine.

Associated Types

Required Methods

Construct a new instance.

Verify the given state.

Synchronize the given state.

Implementors