fix(python/build_tx): correct predefined input types

pull/1907/head
matejcik 3 years ago committed by matejcik
parent f96e737ef5
commit 9b9f6859d6

@ -29,11 +29,12 @@ from trezorlib.protobuf import to_dict
SESSION = requests.Session()
SESSION.headers.update({"User-Agent": "trezorlib"})
# the following script type mapping is only valid for single-sig Trezor-generated utxos
BITCOIN_CORE_INPUT_TYPES = {
"scripthash": messages.InputScriptType.SPENDADDRESS,
"pubkeyhash": messages.InputScriptType.SPENDP2SHWITNESS,
"pubkeyhash": messages.InputScriptType.SPENDADDRESS,
"scripthash": messages.InputScriptType.SPENDP2SHWITNESS,
"witness_v0_keyhash": messages.InputScriptType.SPENDWITNESS,
"witness_v1_taproot": messages.InputScriptType.SPENDP2SHWITNESS,
"witness_v1_taproot": messages.InputScriptType.SPENDTAPROOT,
}

Loading…
Cancel
Save