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/tx_rsig_bulletproof.py

30 lines
720 B

from micropython import const
from apps.monero.xmr.serialize.message_types import ContainerType, MessageType
from apps.monero.xmr.serialize_messages.base import ECKey
class _KeyV(ContainerType):
FIX_SIZE = const(0)
ELEM_TYPE = ECKey
class Bulletproof(MessageType):
__slots__ = ("V", "A", "S", "T1", "T2", "taux", "mu", "L", "R", "a", "b", "t")
@classmethod
def f_specs(cls):
return (
("A", ECKey),
("S", ECKey),
("T1", ECKey),
("T2", ECKey),
("taux", ECKey),
("mu", ECKey),
("L", _KeyV),
("R", _KeyV),
("a", ECKey),
("b", ECKey),
("t", ECKey),
)