Skip to content

Commit

Permalink
fixup! feat(core): add nostr
Browse files Browse the repository at this point in the history
  • Loading branch information
ibz committed Dec 18, 2024
1 parent 05e87c2 commit d66d0af
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
3 changes: 2 additions & 1 deletion rust/trezor-client/scripts/build_messages
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

# Generates the `trezor_message_impl!` macro calls for the `src/messages/mod.rs` file.
# Generates the `trezor_message_impl!` macro calls for the `src/messages/generated.rs` file.

from os import path

Expand All @@ -24,6 +24,7 @@ FEATURES = {
"EOS": "eos",
"Monero": "monero",
"NEM": "nem",
"Nostr": "nostr",
"Ripple": "ripple",
"Solana": "solana",
"Stellar": "stellar",
Expand Down
12 changes: 8 additions & 4 deletions rust/trezor-client/src/messages/generated.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tests/device_tests/nostr/test_nostr.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
from trezorlib.debuglink import TrezorClientDebugLink as Client
from trezorlib.tools import parse_path

pytestmark = pytest.mark.models("core")

# test data from NIP-06: https://github.com/nostr-protocol/nips/blob/master/06.md

LEAD_MONKEY_MNEMONIC = (
Expand Down
12 changes: 12 additions & 0 deletions tests/ui_tests/fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -4992,6 +4992,10 @@
"T2T1_en_nem-test_signtx_transfers.py::test_nem_signtx_simple[True]": "513c1123880208703c94bcb1ce527d1f584f77b6f5144344bbc3b426ad657d70",
"T2T1_en_nem-test_signtx_transfers.py::test_nem_signtx_unknown_mosaic": "63ede54ab17f687c9d1e88ebeea0a87059862fab22220d882718c77338fa2aee",
"T2T1_en_nem-test_signtx_transfers.py::test_nem_signtx_xem_as_mosaic": "bf860cbea5a20cf275643c4b640cade9afb902a757f88d7b701f82e5dd025b74",
"T2T1_en_nostr-test_nostr.py::test_get_pubkey_lead_monkey": "8b1ccc0dbd6e6e3d02a896650ab90dd332ba4edbbcc4095e0fbb6a96e5256f75",
"T2T1_en_nostr-test_nostr.py::test_get_pubkey_what_bleak": "8b1ccc0dbd6e6e3d02a896650ab90dd332ba4edbbcc4095e0fbb6a96e5256f75",
"T2T1_en_nostr-test_nostr.py::test_sign_event_lead_monkey": "d164c81dd25147f83b67cf592414759f25ef013dc2f93de3674f39c00625c895",
"T2T1_en_nostr-test_nostr.py::test_sign_event_what_bleak": "d164c81dd25147f83b67cf592414759f25ef013dc2f93de3674f39c00625c895",
"T2T1_en_reset_recovery-test_recovery_bip39_dryrun.py::test_bad_parameters[label-test]": "8b1ccc0dbd6e6e3d02a896650ab90dd332ba4edbbcc4095e0fbb6a96e5256f75",
"T2T1_en_reset_recovery-test_recovery_bip39_dryrun.py::test_bad_parameters[passphrase_protection-True]": "8b1ccc0dbd6e6e3d02a896650ab90dd332ba4edbbcc4095e0fbb6a96e5256f75",
"T2T1_en_reset_recovery-test_recovery_bip39_dryrun.py::test_bad_parameters[pin_protection-True]": "8b1ccc0dbd6e6e3d02a896650ab90dd332ba4edbbcc4095e0fbb6a96e5256f75",
Expand Down Expand Up @@ -13751,6 +13755,10 @@
"T3B1_en_monero-test_getaddress.py::test_monero_getaddress_chunkify_details[m-44h-128h-1h-44iAazhoAk-005b0fdf": "f281239f98a0575610df4e4837a2d02828c1c5e3274f6f4b7578331742f9f5c0",
"T3B1_en_monero-test_getaddress.py::test_monero_getaddress_chunkify_details[m-44h-128h-2h-47ejhmbZ4w-df40ccfd": "aefd9c7c509df53f67fb2638b6ac12ec52681a550cee61b93ca294e2e15b904c",
"T3B1_en_monero-test_getwatchkey.py::test_monero_getwatchkey": "e9f6381bfc182df51a644dbd3ed7e42ee983871523d853f9a0145d062f80b1f5",
"T3B1_en_nostr-test_nostr.py::test_get_pubkey_lead_monkey": "1477d62e338f4d7c1bfac2fc5d2fc231218da5768666c11482dc1f83229506f3",
"T3B1_en_nostr-test_nostr.py::test_get_pubkey_what_bleak": "1477d62e338f4d7c1bfac2fc5d2fc231218da5768666c11482dc1f83229506f3",
"T3B1_en_nostr-test_nostr.py::test_sign_event_lead_monkey": "cd7c8ef54329c264df421645dd78e46931e5521c10f4969197ecbab6a1d512a3",
"T3B1_en_nostr-test_nostr.py::test_sign_event_what_bleak": "cd7c8ef54329c264df421645dd78e46931e5521c10f4969197ecbab6a1d512a3",
"T3B1_en_reset_recovery-test_recovery_bip39_dryrun.py::test_bad_parameters[label-test]": "1477d62e338f4d7c1bfac2fc5d2fc231218da5768666c11482dc1f83229506f3",
"T3B1_en_reset_recovery-test_recovery_bip39_dryrun.py::test_bad_parameters[passphrase_protection-True]": "1477d62e338f4d7c1bfac2fc5d2fc231218da5768666c11482dc1f83229506f3",
"T3B1_en_reset_recovery-test_recovery_bip39_dryrun.py::test_bad_parameters[pin_protection-True]": "1477d62e338f4d7c1bfac2fc5d2fc231218da5768666c11482dc1f83229506f3",
Expand Down Expand Up @@ -22345,6 +22353,10 @@
"T3T1_en_monero-test_getaddress.py::test_monero_getaddress_chunkify_details[m-44h-128h-1h-44iAazhoAk-005b0fdf": "3da835571e0ab6e41a7bf923ca53abe5062964e4808d9f4d9c5030056bb7ca6a",
"T3T1_en_monero-test_getaddress.py::test_monero_getaddress_chunkify_details[m-44h-128h-2h-47ejhmbZ4w-df40ccfd": "cd0b0f2b85d35442787d75864b4eeee6409ab3e29b4ecd1363a6acfac8ffca37",
"T3T1_en_monero-test_getwatchkey.py::test_monero_getwatchkey": "f8d7d165b3f70cf5c527ba0e81893588b7d1bca1b88787cf41aa590592d95d36",
"T3T1_en_nostr-test_nostr.py::test_get_pubkey_lead_monkey": "3c5fb7d6110128ed52024a6b92654210b7acad6fe08b568d5238bfceb257a524",
"T3T1_en_nostr-test_nostr.py::test_get_pubkey_what_bleak": "3c5fb7d6110128ed52024a6b92654210b7acad6fe08b568d5238bfceb257a524",
"T3T1_en_nostr-test_nostr.py::test_sign_event_lead_monkey": "332aaa4e66fb6acde0c54ce4f3c7a357fd6cc6967a44b07fec1f2de21521d8ff",
"T3T1_en_nostr-test_nostr.py::test_sign_event_what_bleak": "332aaa4e66fb6acde0c54ce4f3c7a357fd6cc6967a44b07fec1f2de21521d8ff",
"T3T1_en_reset_recovery-test_recovery_bip39_dryrun.py::test_bad_parameters[label-test]": "3c5fb7d6110128ed52024a6b92654210b7acad6fe08b568d5238bfceb257a524",
"T3T1_en_reset_recovery-test_recovery_bip39_dryrun.py::test_bad_parameters[passphrase_protection-True]": "3c5fb7d6110128ed52024a6b92654210b7acad6fe08b568d5238bfceb257a524",
"T3T1_en_reset_recovery-test_recovery_bip39_dryrun.py::test_bad_parameters[pin_protection-True]": "3c5fb7d6110128ed52024a6b92654210b7acad6fe08b568d5238bfceb257a524",
Expand Down

0 comments on commit d66d0af

Please sign in to comment.