From bbfce4e303a9b0f1a9edfb0b8f749c63082cc00f Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 25 May 2020 15:23:23 +0200 Subject: [PATCH] common: introduce ButtonRequestType.PinEntry --- common/protob/messages-common.proto | 1 + core/src/trezor/messages/ButtonRequest.py | 4 ++-- core/src/trezor/messages/ButtonRequestType.py | 1 + python/src/trezorlib/messages/ButtonRequest.py | 4 ++-- python/src/trezorlib/messages/ButtonRequestType.py | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/common/protob/messages-common.proto b/common/protob/messages-common.proto index 17bfcba8a..4b1c077ef 100644 --- a/common/protob/messages-common.proto +++ b/common/protob/messages-common.proto @@ -68,6 +68,7 @@ message ButtonRequest { ButtonRequest_Success = 17; ButtonRequest_Warning = 18; ButtonRequest_PassphraseEntry = 19; + ButtonRequest_PinEntry = 20; } } diff --git a/core/src/trezor/messages/ButtonRequest.py b/core/src/trezor/messages/ButtonRequest.py index 20409c146..2855f9417 100644 --- a/core/src/trezor/messages/ButtonRequest.py +++ b/core/src/trezor/messages/ButtonRequest.py @@ -6,7 +6,7 @@ if __debug__: try: from typing import Dict, List # noqa: F401 from typing_extensions import Literal # noqa: F401 - EnumTypeButtonRequestType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] + EnumTypeButtonRequestType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] except ImportError: pass @@ -23,5 +23,5 @@ class ButtonRequest(p.MessageType): @classmethod def get_fields(cls) -> Dict: return { - 1: ('code', p.EnumType("ButtonRequestType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)), 0), + 1: ('code', p.EnumType("ButtonRequestType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)), 0), } diff --git a/core/src/trezor/messages/ButtonRequestType.py b/core/src/trezor/messages/ButtonRequestType.py index e90b87529..dadd38a9f 100644 --- a/core/src/trezor/messages/ButtonRequestType.py +++ b/core/src/trezor/messages/ButtonRequestType.py @@ -22,3 +22,4 @@ RecoveryHomepage = 16 # type: Literal[16] Success = 17 # type: Literal[17] Warning = 18 # type: Literal[18] PassphraseEntry = 19 # type: Literal[19] +PinEntry = 20 # type: Literal[20] diff --git a/python/src/trezorlib/messages/ButtonRequest.py b/python/src/trezorlib/messages/ButtonRequest.py index 1a9ad14e2..61ac7d3d6 100644 --- a/python/src/trezorlib/messages/ButtonRequest.py +++ b/python/src/trezorlib/messages/ButtonRequest.py @@ -6,7 +6,7 @@ if __debug__: try: from typing import Dict, List # noqa: F401 from typing_extensions import Literal # noqa: F401 - EnumTypeButtonRequestType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] + EnumTypeButtonRequestType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] except ImportError: pass @@ -23,5 +23,5 @@ class ButtonRequest(p.MessageType): @classmethod def get_fields(cls) -> Dict: return { - 1: ('code', p.EnumType("ButtonRequestType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)), 0), + 1: ('code', p.EnumType("ButtonRequestType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)), 0), } diff --git a/python/src/trezorlib/messages/ButtonRequestType.py b/python/src/trezorlib/messages/ButtonRequestType.py index e90b87529..dadd38a9f 100644 --- a/python/src/trezorlib/messages/ButtonRequestType.py +++ b/python/src/trezorlib/messages/ButtonRequestType.py @@ -22,3 +22,4 @@ RecoveryHomepage = 16 # type: Literal[16] Success = 17 # type: Literal[17] Warning = 18 # type: Literal[18] PassphraseEntry = 19 # type: Literal[19] +PinEntry = 20 # type: Literal[20]