mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-27 00:48:12 +00:00
fixup! fixup! feat(python): implement session based trezorlib
This commit is contained in:
parent
01b41a78b8
commit
f9142abb42
@ -47,7 +47,6 @@ Or visit https://suite.trezor.io/
|
|||||||
|
|
||||||
|
|
||||||
class ProtocolVersion(IntEnum):
|
class ProtocolVersion(IntEnum):
|
||||||
UNKNOWN = 0x00
|
|
||||||
PROTOCOL_V1 = 0x01 # Codec
|
PROTOCOL_V1 = 0x01 # Codec
|
||||||
PROTOCOL_V2 = 0x02 # THP
|
PROTOCOL_V2 = 0x02 # THP
|
||||||
|
|
||||||
@ -91,7 +90,7 @@ class TrezorClient:
|
|||||||
if isinstance(self.protocol, ProtocolV1Channel):
|
if isinstance(self.protocol, ProtocolV1Channel):
|
||||||
self._protocol_version = ProtocolVersion.PROTOCOL_V1
|
self._protocol_version = ProtocolVersion.PROTOCOL_V1
|
||||||
else:
|
else:
|
||||||
self._protocol_version = ProtocolVersion.UNKNOWN
|
raise Exception("Unknown protocol version")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def resume(
|
def resume(
|
||||||
|
Loading…
Reference in New Issue
Block a user