pub fn transaction_parse(cbor: &[u8], testnet: bool) -> Result<MessageTxAPI, SignerError> {
    let message: MessageTx = from_slice(cbor)?;

    let message_tx_with_network = MessageTxNetwork {
        message_tx: MessageTxAPI::from(message),
        testnet,
    };

    let parsed_message = MessageTxAPI::try_from(message_tx_with_network)?;

    Ok(parsed_message)
}
/// Parse a CBOR hextring into a filecoin transaction (signed or unsigned).
///
/// # Arguments
///
/// * `hexstring` - the cbor hexstring to parse
/// * `testnet` - boolean value `true` if testnet or `false` for mainnet
///
Parse a CBOR hextring into a filecoin transaction (signed or unsigned).
Parse a CBOR hextring into a filecoin transaction ( signed or unsigned ) .
pub fn transaction_parse(cbor: &[u8], testnet: bool) -> Result<MessageTxAPI, SignerError> {
    let message: MessageTx = from_slice(cbor)?;
    let message_tx_with_network = MessageTxNetwork {
        message_tx: MessageTxAPI::from(message),
        testnet,
    };
    let parsed_message = MessageTxAPI::try_from(message_tx_with_network)?;
    Ok(parsed_message)
}
pub fn transaction_parse ( cbor : & [ u8 ] , testnet : bool ) -> Result < MessageTxAPI , SignerError > { let message : MessageTx = from_slice ( cbor ) ? ; let message_tx_with_network = MessageTxNetwork { message_tx : MessageTxAPI :: from ( message ) , testnet , } ; let parsed_message = MessageTxAPI :: try_from ( message_tx_with_network ) ? ; Ok ( parsed_message ) }
Parse a CBOR hextring into a filecoin transaction (signed or unsigned).
Parse a CBOR hextring into a filecoin transaction ( signed or unsigned ) .
cbor
&[u8]
testnet
bool
cbor
&[u8]
testnet
bool