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§
Sourcefn parse(&self, raw: &[u8]) -> Result<ParsedTx, ParseError>
fn parse(&self, raw: &[u8]) -> Result<ParsedTx, ParseError>
Parse raw transaction bytes into a ParsedTx.
§Errors
Returns ParseError if the transaction cannot be decoded.