pub trait GetStateRoot {
    fn hash(
        &self,
        channel: ChannelId,
        token_precision: u8
    ) -> Result<[u8; 32], GetStateRootError>; fn encode(
        &self,
        channel: ChannelId,
        token_precision: u8
    ) -> Result<String, GetStateRootError> { ... } }

Required Methods

Hashes the struct to produce a StateRoot [u8; 32]

Provided Methods

Calls hash() and then hex::encodes the result ready to be used in a Validator Message

Implementations on Foreign Types

Implementors