-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(connect): new option to order pubkeys LEXICOGRAPHIC for multisig #15865
base: develop
Are you sure you want to change the base?
Conversation
@karliatto please finish this 🙏 it would make sense to add also some of the tests fixtures from the aforementioned PR to the firmware repo |
a91d57e
to
293dbcf
Compare
Definitions were already merged to develop by this 3737c9e So with this PR we are now only adding tests. |
4ca9d26
to
685a687
Compare
685a687
to
e30f2d1
Compare
Tests introduced here were tested and passing also with "2-main" https://github.com/trezor/trezor-suite/actions/runs/12748488684/job/35528852652?pr=15865 |
pubkeys: pubkeysOrder2, | ||
signatures: ['', ''], | ||
m: 2, | ||
pubkeys_order: MultisigPubkeysOrder.PRESERVED, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so I understand that pubkeys_order
doesn't need to be added anywhere in the runtime, because it s part of multisig
field which is already passed to the device.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right.
@@ -0,0 +1,119 @@ | |||
import { MultisigPubkeysOrder } from '@trezor/protobuf/src/messages'; | |||
|
|||
// https://github.com/trezor/trezor-firmware/blob/45a029edcc720b0825e4a13504d460faada8b72c/tests/device_tests/bitcoin/test_getaddress.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one nitpick. you probably wanted to list this URL? https://github.com/trezor/trezor-firmware/blob/main/tests/device_tests/bitcoin/test_getaddress.py
using https://github.com/trezor/trezor-firmware/blob/45a029edcc720b0825e4a13504d460faada8b72c/tests/device_tests/bitcoin/test_getaddress.py I don't see addressUnsorted1 and addressUnsorted2 in there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 0dfdc4d
e30f2d1
to
6777f5e
Compare
@karliatto since I created the PR, its up to you to merge. 👍 |
@trezor/connect implementation of trezor/trezor-firmware#4351