forked from trezor/trezor-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
632 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
|
||
class OntologyAddress(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 351 | ||
FIELDS = { | ||
1: ('address', p.UnicodeType, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
address: str = None, | ||
) -> None: | ||
self.address = address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
ONT = 1 | ||
ONG = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
if __debug__: | ||
try: | ||
from typing import List | ||
except ImportError: | ||
List = None # type: ignore | ||
|
||
|
||
class OntologyGetAddress(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 350 | ||
FIELDS = { | ||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED), | ||
2: ('show_display', p.BoolType, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
address_n: List[int] = None, | ||
show_display: bool = None, | ||
) -> None: | ||
self.address_n = address_n if address_n is not None else [] | ||
self.show_display = show_display |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
if __debug__: | ||
try: | ||
from typing import List | ||
except ImportError: | ||
List = None # type: ignore | ||
|
||
|
||
class OntologyGetPublicKey(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 352 | ||
FIELDS = { | ||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED), | ||
2: ('show_display', p.BoolType, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
address_n: List[int] = None, | ||
show_display: bool = None, | ||
) -> None: | ||
self.address_n = address_n if address_n is not None else [] | ||
self.show_display = show_display |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
from .OntologyOntIdAttribute import OntologyOntIdAttribute | ||
|
||
if __debug__: | ||
try: | ||
from typing import List | ||
except ImportError: | ||
List = None # type: ignore | ||
|
||
|
||
class OntologyOntIdAddAttributes(p.MessageType): | ||
FIELDS = { | ||
1: ('ont_id', p.UnicodeType, 0), | ||
2: ('public_key', p.BytesType, 0), | ||
3: ('ont_id_attributes', OntologyOntIdAttribute, p.FLAG_REPEATED), | ||
} | ||
|
||
def __init__( | ||
self, | ||
ont_id: str = None, | ||
public_key: bytes = None, | ||
ont_id_attributes: List[OntologyOntIdAttribute] = None, | ||
) -> None: | ||
self.ont_id = ont_id | ||
self.public_key = public_key | ||
self.ont_id_attributes = ont_id_attributes if ont_id_attributes is not None else [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
|
||
class OntologyOntIdAttribute(p.MessageType): | ||
FIELDS = { | ||
1: ('key', p.UnicodeType, 0), | ||
2: ('type', p.UnicodeType, 0), | ||
3: ('value', p.UnicodeType, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
key: str = None, | ||
type: str = None, | ||
value: str = None, | ||
) -> None: | ||
self.key = key | ||
self.type = type | ||
self.value = value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
|
||
class OntologyOntIdRegister(p.MessageType): | ||
FIELDS = { | ||
1: ('ont_id', p.UnicodeType, 0), | ||
2: ('public_key', p.BytesType, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
ont_id: str = None, | ||
public_key: bytes = None, | ||
) -> None: | ||
self.ont_id = ont_id | ||
self.public_key = public_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
|
||
class OntologyPublicKey(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 353 | ||
FIELDS = { | ||
1: ('public_key', p.BytesType, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
public_key: bytes = None, | ||
) -> None: | ||
self.public_key = public_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
from .OntologyOntIdAddAttributes import OntologyOntIdAddAttributes | ||
from .OntologyTransaction import OntologyTransaction | ||
|
||
if __debug__: | ||
try: | ||
from typing import List | ||
except ImportError: | ||
List = None # type: ignore | ||
|
||
|
||
class OntologySignOntIdAddAttributes(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 360 | ||
FIELDS = { | ||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED), | ||
2: ('transaction', OntologyTransaction, 0), | ||
3: ('ont_id_add_attributes', OntologyOntIdAddAttributes, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
address_n: List[int] = None, | ||
transaction: OntologyTransaction = None, | ||
ont_id_add_attributes: OntologyOntIdAddAttributes = None, | ||
) -> None: | ||
self.address_n = address_n if address_n is not None else [] | ||
self.transaction = transaction | ||
self.ont_id_add_attributes = ont_id_add_attributes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
from .OntologyOntIdRegister import OntologyOntIdRegister | ||
from .OntologyTransaction import OntologyTransaction | ||
|
||
if __debug__: | ||
try: | ||
from typing import List | ||
except ImportError: | ||
List = None # type: ignore | ||
|
||
|
||
class OntologySignOntIdRegister(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 358 | ||
FIELDS = { | ||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED), | ||
2: ('transaction', OntologyTransaction, 0), | ||
3: ('ont_id_register', OntologyOntIdRegister, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
address_n: List[int] = None, | ||
transaction: OntologyTransaction = None, | ||
ont_id_register: OntologyOntIdRegister = None, | ||
) -> None: | ||
self.address_n = address_n if address_n is not None else [] | ||
self.transaction = transaction | ||
self.ont_id_register = ont_id_register |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
from .OntologyTransaction import OntologyTransaction | ||
from .OntologyTransfer import OntologyTransfer | ||
|
||
if __debug__: | ||
try: | ||
from typing import List | ||
except ImportError: | ||
List = None # type: ignore | ||
|
||
|
||
class OntologySignTransfer(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 354 | ||
FIELDS = { | ||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED), | ||
2: ('transaction', OntologyTransaction, 0), | ||
3: ('transfer', OntologyTransfer, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
address_n: List[int] = None, | ||
transaction: OntologyTransaction = None, | ||
transfer: OntologyTransfer = None, | ||
) -> None: | ||
self.address_n = address_n if address_n is not None else [] | ||
self.transaction = transaction | ||
self.transfer = transfer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
from .OntologyTransaction import OntologyTransaction | ||
from .OntologyWithdrawOng import OntologyWithdrawOng | ||
|
||
if __debug__: | ||
try: | ||
from typing import List | ||
except ImportError: | ||
List = None # type: ignore | ||
|
||
|
||
class OntologySignWithdrawOng(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 356 | ||
FIELDS = { | ||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED), | ||
2: ('transaction', OntologyTransaction, 0), | ||
3: ('withdraw_ong', OntologyWithdrawOng, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
address_n: List[int] = None, | ||
transaction: OntologyTransaction = None, | ||
withdraw_ong: OntologyWithdrawOng = None, | ||
) -> None: | ||
self.address_n = address_n if address_n is not None else [] | ||
self.transaction = transaction | ||
self.withdraw_ong = withdraw_ong |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
|
||
class OntologySignedOntIdAddAttributes(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 361 | ||
FIELDS = { | ||
1: ('signature', p.BytesType, 0), | ||
2: ('payload', p.BytesType, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
signature: bytes = None, | ||
payload: bytes = None, | ||
) -> None: | ||
self.signature = signature | ||
self.payload = payload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
|
||
class OntologySignedOntIdRegister(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 359 | ||
FIELDS = { | ||
1: ('signature', p.BytesType, 0), | ||
2: ('payload', p.BytesType, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
signature: bytes = None, | ||
payload: bytes = None, | ||
) -> None: | ||
self.signature = signature | ||
self.payload = payload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
|
||
class OntologySignedTransfer(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 355 | ||
FIELDS = { | ||
1: ('signature', p.BytesType, 0), | ||
2: ('payload', p.BytesType, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
signature: bytes = None, | ||
payload: bytes = None, | ||
) -> None: | ||
self.signature = signature | ||
self.payload = payload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Automatically generated by pb2py | ||
# fmt: off | ||
import protobuf as p | ||
|
||
|
||
class OntologySignedWithdrawOng(p.MessageType): | ||
MESSAGE_WIRE_TYPE = 357 | ||
FIELDS = { | ||
1: ('signature', p.BytesType, 0), | ||
2: ('payload', p.BytesType, 0), | ||
} | ||
|
||
def __init__( | ||
self, | ||
signature: bytes = None, | ||
payload: bytes = None, | ||
) -> None: | ||
self.signature = signature | ||
self.payload = payload |
Oops, something went wrong.