mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 02:48:18 +00:00
common: return the PasshraseType button request
This commit is contained in:
parent
c4babd3c0b
commit
ff1bb67abc
@ -62,7 +62,7 @@ message ButtonRequest {
|
|||||||
ButtonRequest_PublicKey = 11;
|
ButtonRequest_PublicKey = 11;
|
||||||
ButtonRequest_MnemonicWordCount = 12;
|
ButtonRequest_MnemonicWordCount = 12;
|
||||||
ButtonRequest_MnemonicInput = 13;
|
ButtonRequest_MnemonicInput = 13;
|
||||||
// ButtonRequest_PassphraseType = 14; DEPRECATED
|
_Deprecated_ButtonRequest_PassphraseType = 14 [deprecated=true];
|
||||||
ButtonRequest_UnknownDerivationPath = 15;
|
ButtonRequest_UnknownDerivationPath = 15;
|
||||||
ButtonRequest_RecoveryHomepage = 16;
|
ButtonRequest_RecoveryHomepage = 16;
|
||||||
ButtonRequest_Success = 17;
|
ButtonRequest_Success = 17;
|
||||||
|
@ -6,7 +6,7 @@ if __debug__:
|
|||||||
try:
|
try:
|
||||||
from typing import Dict, List # noqa: F401
|
from typing import Dict, List # noqa: F401
|
||||||
from typing_extensions import Literal # noqa: F401
|
from typing_extensions import Literal # noqa: F401
|
||||||
EnumTypeButtonRequestType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 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]
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -23,5 +23,5 @@ class ButtonRequest(p.MessageType):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def get_fields(cls) -> Dict:
|
def get_fields(cls) -> Dict:
|
||||||
return {
|
return {
|
||||||
1: ('code', p.EnumType("ButtonRequestType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 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)), 0),
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ Address = 10 # type: Literal[10]
|
|||||||
PublicKey = 11 # type: Literal[11]
|
PublicKey = 11 # type: Literal[11]
|
||||||
MnemonicWordCount = 12 # type: Literal[12]
|
MnemonicWordCount = 12 # type: Literal[12]
|
||||||
MnemonicInput = 13 # type: Literal[13]
|
MnemonicInput = 13 # type: Literal[13]
|
||||||
|
_Deprecated_ButtonRequest_PassphraseType = 14 # type: Literal[14]
|
||||||
UnknownDerivationPath = 15 # type: Literal[15]
|
UnknownDerivationPath = 15 # type: Literal[15]
|
||||||
RecoveryHomepage = 16 # type: Literal[16]
|
RecoveryHomepage = 16 # type: Literal[16]
|
||||||
Success = 17 # type: Literal[17]
|
Success = 17 # type: Literal[17]
|
||||||
|
@ -6,7 +6,7 @@ if __debug__:
|
|||||||
try:
|
try:
|
||||||
from typing import Dict, List # noqa: F401
|
from typing import Dict, List # noqa: F401
|
||||||
from typing_extensions import Literal # noqa: F401
|
from typing_extensions import Literal # noqa: F401
|
||||||
EnumTypeButtonRequestType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 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]
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -23,5 +23,5 @@ class ButtonRequest(p.MessageType):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def get_fields(cls) -> Dict:
|
def get_fields(cls) -> Dict:
|
||||||
return {
|
return {
|
||||||
1: ('code', p.EnumType("ButtonRequestType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 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)), 0),
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ Address = 10 # type: Literal[10]
|
|||||||
PublicKey = 11 # type: Literal[11]
|
PublicKey = 11 # type: Literal[11]
|
||||||
MnemonicWordCount = 12 # type: Literal[12]
|
MnemonicWordCount = 12 # type: Literal[12]
|
||||||
MnemonicInput = 13 # type: Literal[13]
|
MnemonicInput = 13 # type: Literal[13]
|
||||||
|
_Deprecated_ButtonRequest_PassphraseType = 14 # type: Literal[14]
|
||||||
UnknownDerivationPath = 15 # type: Literal[15]
|
UnknownDerivationPath = 15 # type: Literal[15]
|
||||||
RecoveryHomepage = 16 # type: Literal[16]
|
RecoveryHomepage = 16 # type: Literal[16]
|
||||||
Success = 17 # type: Literal[17]
|
Success = 17 # type: Literal[17]
|
||||||
|
Loading…
Reference in New Issue
Block a user