1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 13:12:05 +00:00
trezor-firmware/trezorlib/messages/PublicKey.py

20 lines
424 B
Python

# Automatically generated by pb2py
from .. import protobuf as p
from .HDNodeType import HDNodeType
class PublicKey(p.MessageType):
MESSAGE_WIRE_TYPE = 12
FIELDS = {
1: ('node', HDNodeType, 0), # required
2: ('xpub', p.UnicodeType, 0),
}
def __init__(
self,
node: HDNodeType = None,
xpub: str = None
) -> None:
self.node = node
self.xpub = xpub