Skip to main content

extract_p2sh_redeemed_script

Function extract_p2sh_redeemed_script 

Source
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.