def signature_for_hash_type_f(hash_type, script):
    return tx.signature_hash(script, idx, hash_type)
def signature_for_hash_type_f(hash_type, script):
    return tx.signature_hash(script, idx, hash_type)