Trait ethcore::client::ProvingBlockChainClient [] [src]

pub trait ProvingBlockChainClient: BlockChainClient {
    fn prove_storage(
        &self,
        key1: H256,
        key2: H256,
        id: BlockId
    ) -> Option<(Vec<Bytes>, H256)>;
fn prove_account(
        &self,
        key1: H256,
        id: BlockId
    ) -> Option<(Vec<Bytes>, BasicAccount)>;
fn prove_transaction(
        &self,
        transaction: SignedTransaction,
        id: BlockId
    ) -> Option<(Bytes, Vec<DBValue>)>;
fn epoch_signal(&self, hash: H256) -> Option<Vec<u8>>; }

Extended client interface for providing proofs of the state.

Required Methods

Prove account storage at a specific block id.

Both provided keys assume a secure trie. Returns a vector of raw trie nodes (in order from the root) proving the storage query.

Prove account existence at a specific block id. The key is the keccak hash of the account's address. Returns a vector of raw trie nodes (in order from the root) proving the query.

Prove execution of a transaction at the given block. Returns the output of the call and a vector of database items necessary to reproduce it.

Get an epoch change signal by block hash.

Implementors