pub trait QueryTrait<N: Network> {
    // Required methods
    fn current_state_root(&self) -> Result<N::StateRoot>;
    fn get_state_path_for_commitment(
        &self,
        commitment: &Field<N>
    ) -> Result<StatePath<N>>;
}

Required Methods§

source

fn current_state_root(&self) -> Result<N::StateRoot>

Returns the current state root.

source

fn get_state_path_for_commitment( &self, commitment: &Field<N> ) -> Result<StatePath<N>>

Returns a state path for the given commitment.

Implementors§

source§

impl<N: Network, B: BlockStorage<N>> QueryTrait<N> for Query<N, B>