hermes-encoding-components 0.1.0

Implementation of an IBC Relayer in Rust, as a library
Documentation
1
2
3
4
5
6
7
8
use cgp::prelude::*;

use crate::traits::types::encoded::HasEncodedType;

#[derive_component(DecoderComponent, Decoder<Encoding>)]
pub trait CanDecode<Strategy, Value>: HasEncodedType + HasErrorType {
    fn decode(&self, encoded: &Self::Encoded) -> Result<Value, Self::Error>;
}