pub(super) fn extract_p2sh_redeemed_script(
unlock_script: &Script,
) -> Option<Vec<u8>>Expand description
Extract the redeemed script bytes from a P2SH scriptSig.
The redeemed script is the last data push in the scriptSig.
Returns None if the scriptSig has no push operations.
ยงPrecondition
The scriptSig should be push-only (enforced by mempool_standard_input_scripts before this
function is reached). Non-push opcodes are silently ignored.