[][src]Function bitcoin_spv::btcspv::determine_output_length

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

Determines the length of an output. 5 types: WPKH, WSH, PKH, SH, and OP_RETURN.

Arguments

  • tx_out - The output

Errors

  • Errors if VarInt represents a number larger than 253; large VarInts are not supported.