[][src]Function bitcoin_spv::btcspv::extract_op_return_data

pub fn extract_op_return_data(tx_out: &Vec<u8>) -> Result<Vec<u8>, SPVError>

Extracts the data from an op return output. Errors if no data or not an op return.

Arguments

  • tx_out - The output

Errors

  • Errors if the op return output is malformatted