mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-26 00:08:10 +00:00
20 lines
424 B
Python
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
|