1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-06 14:52:33 +00:00
trezor-firmware/python/trezorlib/messages/MultisigRedeemScriptType.py
matejcik cf396e3661 python: return generated files to git
This separates the regeneration step from the build/install step.
This is to simplify bootstrapping: trezorlib is needed in several
build/test steps, and bound to be needed in more. It should be
usable and installable straight from the checkout.
2019-05-17 15:09:58 +02:00

40 lines
1.2 KiB
Python

# Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
from .HDNodePathType import HDNodePathType
from .HDNodeType import HDNodeType
if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore
class MultisigRedeemScriptType(p.MessageType):
def __init__(
self,
pubkeys: List[HDNodePathType] = None,
signatures: List[bytes] = None,
m: int = None,
nodes: List[HDNodeType] = None,
address_n: List[int] = None,
) -> None:
self.pubkeys = pubkeys if pubkeys is not None else []
self.signatures = signatures if signatures is not None else []
self.m = m
self.nodes = nodes if nodes is not None else []
self.address_n = address_n if address_n is not None else []
@classmethod
def get_fields(cls):
return {
1: ('pubkeys', HDNodePathType, p.FLAG_REPEATED),
2: ('signatures', p.BytesType, p.FLAG_REPEATED),
3: ('m', p.UVarintType, 0),
4: ('nodes', HDNodeType, p.FLAG_REPEATED),
5: ('address_n', p.UVarintType, p.FLAG_REPEATED),
}