Skip to content
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

fix(core): remove unused protobuf messages defines #175

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions common/protob/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,6 @@ enum MessageType {
MessageType_LnurlAuth = 11600 [(wire_in) = true];
MessageType_LnurlAuthResp = 11601 [(wire_out) = true];

// Uniform Resources [21000:22000]
MessageType_URCryptoHdkey = 21000 [(wire_in) = true];
MessageType_URResponse = 21001 [(wire_out) = true];

// nervos
MessageType_NervosGetAddress = 11701 [(wire_in) = true];
Expand Down
4 changes: 0 additions & 4 deletions core/src/apps/workflow_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,6 @@ def find_message_handler_module(msg_type: int) -> str:
if msg_type == MessageType.AlephiumSignMessage:
return "apps.alephium.sign_message"

# UR
if msg_type == MessageType.URCryptoHdkey:
return "apps.ur_registry.crypto_hd_key"

raise ValueError


Expand Down
2 changes: 0 additions & 2 deletions core/src/trezor/enums/MessageType.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@
NostrSignedSchnorr = 11509
LnurlAuth = 11600
LnurlAuthResp = 11601
URCryptoHdkey = 21000
URResponse = 21001
NervosGetAddress = 11701
NervosAddress = 11702
NervosSignTx = 11703
Expand Down
2 changes: 0 additions & 2 deletions core/src/trezor/enums/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,6 @@ class MessageType(IntEnum):
NostrSignedSchnorr = 11509
LnurlAuth = 11600
LnurlAuthResp = 11601
URCryptoHdkey = 21000
URResponse = 21001
NervosGetAddress = 11701
NervosAddress = 11702
NervosSignTx = 11703
Expand Down
2 changes: 0 additions & 2 deletions python/src/trezorlib/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,6 @@ class MessageType(IntEnum):
NostrSignedSchnorr = 11509
LnurlAuth = 11600
LnurlAuthResp = 11601
URCryptoHdkey = 21000
URResponse = 21001
NervosGetAddress = 11701
NervosAddress = 11702
NervosSignTx = 11703
Expand Down
Loading