Skip to main content

ChainParser

Trait ChainParser 

Source
pub trait ChainParser: Send + Sync {
    // Required method
    fn parse(&self, raw: &[u8]) -> Result<ParsedTx, ParseError>;
}
Expand description

Trait for chain parsers.

This trait is defined here to avoid circular dependencies. It mirrors the Chain trait from txgate-chain.

Required Methods§

Source

fn parse(&self, raw: &[u8]) -> Result<ParsedTx, ParseError>

Parse raw transaction bytes into a ParsedTx.

§Errors

Returns ParseError if the transaction cannot be decoded.

Implementors§