Skip to main content

p2sh_input_serialized_len

Function p2sh_input_serialized_len 

Source
pub fn p2sh_input_serialized_len(redeem_script: &FromChain) -> Option<usize>
Available on crate feature transparent-inputs only.
Expand description

Returns an upper bound, in bytes, on the serialized size of a P2SH input that spends via redeem_script, assuming signatures of the maximum length.

Returns None if the redeem script is not a recognized P2SH script kind (currently only P2MS-in-P2SH is supported).