def btc_make_p2sh_p2wpkh_redeem_script( pubkey_hex ):
    """
    Make the redeem script for a p2sh-p2wpkh witness script
    """
    pubkey_hash = hashing.bin_hash160(pubkey_hex.decode('hex')).encode('hex')
    redeem_script = btc_script_serialize(['0014' + pubkey_hash])
    return redeem_script
def btc_make_p2sh_p2wpkh_redeem_script ( pubkey_hex ) : pubkey_hash = hashing . bin_hash160 ( pubkey_hex . decode ( 'hex' ) ) . encode ( 'hex' ) redeem_script = btc_script_serialize ( [ '0014' + pubkey_hash ] ) return redeem_script
Make the redeem script for a p2sh-p2wpkh witness script