You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/apps/monero/xmr/serialize_messages/base.py

31 lines
443 B

from micropython import const
from apps.monero.xmr.serialize.message_types import BlobType
_c0 = const(0)
_c1 = const(1)
_c32 = const(32)
#
# cryptonote_basic.h
#
class Hash(BlobType):
__slots__ = ("data",)
DATA_ATTR = "data"
FIX_SIZE = _c1
SIZE = _c32
class ECKey(BlobType):
__slots__ = ("bytes",)
DATA_ATTR = "bytes"
FIX_SIZE = _c1
SIZE = _c32
ECPoint = Hash
ECPublicKey = ECPoint
KeyImage = ECPoint