pub fn decode_locktime_value(bytes: &[u8]) -> Option<u32>Expand description
Decode locktime value from minimal-encoding byte string
Decodes a little-endian, minimal-encoding locktime value from script stack. Used by both BIP65 (CLTV) and BIP112 (CSV) for stack value decoding.
§Arguments
bytes- Byte string from stack (max 5 bytes)
§Returns
Decoded u32 value, or None if invalid encoding