mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-19 08:39:03 +00:00
fixup! feat(python): implement session based trezorlib
This commit is contained in:
parent
7a0f29e26c
commit
1cb1883d9e
@ -92,17 +92,6 @@ class TrezorClient:
|
||||
else:
|
||||
raise Exception("Unknown protocol version")
|
||||
|
||||
@classmethod
|
||||
def resume(
|
||||
cls,
|
||||
transport: Transport,
|
||||
protobuf_mapping: ProtobufMapping | None = None,
|
||||
) -> TrezorClient:
|
||||
if protobuf_mapping is None:
|
||||
protobuf_mapping = mapping.DEFAULT_MAPPING
|
||||
protocol = ProtocolV1Channel(transport, protobuf_mapping)
|
||||
return TrezorClient(transport, protobuf_mapping, protocol)
|
||||
|
||||
def get_session(
|
||||
self,
|
||||
passphrase: str | object | None = None,
|
||||
|
Loading…
Reference in New Issue
Block a user