1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 11:28:21 +00:00
trezor-firmware/trezorlib/messages/PublicKey.py

20 lines
424 B
Python
Raw Normal View History

# 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