mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-27 07:40:59 +00:00
tests: test Elements explicit addresses (p2pkh, p2sh and bech32)
This commit is contained in:
parent
1bb77b81c0
commit
93382a10f5
@ -115,6 +115,13 @@ class TestMsgGetaddress(TrezorTest):
|
||||
== "Fmhtxeh7YdCBkyQF7AQG4QnY8y3rJg89di"
|
||||
)
|
||||
|
||||
def test_elements(self):
|
||||
self.setup_mnemonic_allallall()
|
||||
assert (
|
||||
btc.get_address(self.client, "Elements", parse_path("m/44'/1'/0'/0/0"))
|
||||
== "2dpWh6jbhAowNsQ5agtFzi7j6nKscj6UnEr"
|
||||
)
|
||||
|
||||
def test_multisig(self):
|
||||
self.setup_mnemonic_allallall()
|
||||
xpubs = []
|
||||
|
@ -78,6 +78,17 @@ class TestMsgGetaddressSegwit(TrezorTest):
|
||||
)
|
||||
== "2N4Q5FhU2497BryFfUgbqkAJE87aKDv3V3e"
|
||||
)
|
||||
assert (
|
||||
btc.get_address(
|
||||
self.client,
|
||||
"Elements",
|
||||
parse_path("m/49'/1'/0'/0/0"),
|
||||
False,
|
||||
None,
|
||||
script_type=proto.InputScriptType.SPENDP2SHWITNESS,
|
||||
)
|
||||
== "XNW67ZQA9K3AuXPBWvJH4zN2y5QBDTwy2Z"
|
||||
)
|
||||
|
||||
def test_show_multisig_3(self):
|
||||
self.setup_mnemonic_allallall()
|
||||
|
@ -78,6 +78,17 @@ class TestMsgGetaddressSegwitNative(TrezorTest):
|
||||
)
|
||||
== "grs1qw4teyraux2s77nhjdwh9ar8rl9dt7zww8r6lne"
|
||||
)
|
||||
assert (
|
||||
btc.get_address(
|
||||
self.client,
|
||||
"Elements",
|
||||
parse_path("84'/1'/0'/0/0"),
|
||||
False,
|
||||
None,
|
||||
script_type=proto.InputScriptType.SPENDWITNESS,
|
||||
)
|
||||
== "ert1qkvwu9g3k2pdxewfqr7syz89r3gj557l3xp9k2v"
|
||||
)
|
||||
|
||||
def test_show_multisig_3(self):
|
||||
self.setup_mnemonic_allallall()
|
||||
|
Loading…
Reference in New Issue
Block a user