-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add bip25519 derivation tests for nano*
- Loading branch information
1 parent
ce88421
commit 600881c
Showing
7 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
start_speculos "$seed" | ||
sleep 0.2 | ||
expected_home | ||
send_apdu 8002000311048000002c800006c18000000080000000 | ||
# bip25519 derivations take longer to compute, especially on CI platform. | ||
# Thus, additional TIMEOUT is needed. | ||
TIMEOUT=80 expect_apdu_return 210293c6b359964a4332bf1355579d665b753343f7b0a42567978cea1671f7b89f479000 | ||
quit_app |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
start_speculos "$seed" | ||
sleep 0.2 | ||
expected_home | ||
send_apdu 8003000311048000002c800006c18000000080000000 | ||
# bip25519 derivations take longer to compute, especially on CI platform. | ||
# Thus, additional TIMEOUT is needed. | ||
TIMEOUT=80 expect_section_content "Provide Key" 'tz1VKyZ3RFDwTkrz5LKcTc6fcYqZj6pvsyA7' | ||
press_button right | ||
expected_accept | ||
press_button both | ||
TIMEOUT=100 expect_apdu_return 210293c6b359964a4332bf1355579d665b753343f7b0a42567978cea1671f7b89f479000 | ||
quit_app |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
tests/integration/nano/test_tz1_bip25519_sign_micheline_basic.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
start_speculos "$seed" | ||
sleep 0.2 | ||
expected_home | ||
send_apdu 800f000311048000002c800006c18000000080000000 | ||
expect_apdu_return 9000 | ||
send_apdu 800f81032305020000001d0100000004434143410100000004504f504f0100000006424f5544494e | ||
expect_section_content 'Expression' '{"CACA";"POPO";"BOUDIN"}' | ||
press_button right | ||
expected_accept | ||
press_button both | ||
expect_apdu_return 84e475e38707140e725019e91f036e341fa4a2c8752b7828f37bbf91061b0e0af54b3f3d3a4f5e35584f4d206ee4648ad808c9d119f789112b7e1aec61f156eb48eacec419313bef6f7d3f63b614abe709be6b939f155ea9efa688816fe123029000 | ||
quit_app |
File renamed without changes.