Trait snarkvm_ledger_query::QueryTrait
source · 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§
sourcefn current_state_root(&self) -> Result<N::StateRoot>
fn current_state_root(&self) -> Result<N::StateRoot>
Returns the current state root.
sourcefn get_state_path_for_commitment(
&self,
commitment: &Field<N>
) -> Result<StatePath<N>>
fn get_state_path_for_commitment( &self, commitment: &Field<N> ) -> Result<StatePath<N>>
Returns a state path for the given commitment
.