Function decode_tx

Source
pub fn decode_tx<'a>(data: &'a [u8]) -> Result<Params, ParseError>
Expand description

Decodes a transaction from a byte slice

§Arguments

  • data - Byte slice containing the encoded transaction

§Returns

  • Result<Params, ParseError> - The decoded transaction or an error if decoding fails