Function ibc::clients::tendermint::client_state::verify_client_message
source ยท pub fn verify_client_message<V, H>(
client_state: &ClientState,
ctx: &V,
client_id: &ClientId,
client_message: Any,
verifier: &impl Verifier
) -> Result<(), ClientError>where
V: ExtClientValidationContext,
ConsensusState: Convertible<<V as ClientValidationContext>::ConsensusStateRef>,
<ConsensusState as TryFrom<<V as ClientValidationContext>::ConsensusStateRef>>::Error: Into<ClientError>,
H: MerkleHash + Sha256 + Default,
Expand description
Verify the client message as part of the client state validation process.
Note that this function is typically implemented as part of the
ClientStateValidation
trait, but has been made a standalone function in
order to make the ClientState APIs more flexible. It mostly adheres to the
same signature as the ClientStateValidation::verify_client_message
function, except for an additional verifier
parameter that allows users
who require custom verification logic to easily pass in their own verifier
implementation.