Trait ibc::ics02_client::client_consensus::ConsensusState[][src]

pub trait ConsensusState: DynClone + Debug + Send + Sync {
    fn client_type(&self) -> ClientType;
fn root(&self) -> &CommitmentRoot;
fn validate_basic(&self) -> Result<(), Box<dyn Error>>;
fn wrap_any(self) -> AnyConsensusState; }

Required methods

fn client_type(&self) -> ClientType[src]

Type of client associated with this consensus state (eg. Tendermint)

fn root(&self) -> &CommitmentRoot[src]

Commitment root of the consensus state, which is used for key-value pair verification.

fn validate_basic(&self) -> Result<(), Box<dyn Error>>[src]

Performs basic validation of the consensus state

fn wrap_any(self) -> AnyConsensusState[src]

Wrap into an AnyConsensusState

Loading content...

Implementors

Loading content...