Closed guowei0105 closed 6 months ago
Introduction of a new file for Nervos Network support
A file named messages-nervos.proto
is added to help define protocols used when interacting with the Nervos Network.
Adjustments to several files for expanded Nervos Network compatibility
Several existing files, including common/protob/messages.proto
, core/src/trezor/enums/MessageType.py
, and core/src/trezor/enums/__init__.py
, are updated to include new message types that facilitate interactions with Nervos Network.
Implementation of message definitions and handlers for Nervos
Updates are made to core/src/trezor/messages.py
, legacy/firmware/fsm.c
, and legacy/firmware/fsm.h
, alongside the addition of fsm_msg_nervos.h
, nervos.c
, and nervos.h
files, to properly handle communication with the Nervos Network.
Adjustments to firmware’s Makefiles for Nervos
Modifications in legacy/firmware/Makefile
and legacy/firmware/protob/Makefile
are done to include new Nervos-related sources and protocol buffer options files. Additionally, a messages-nervos.options
file is added to help with the control of maximum sizes of protocol buffer messages for Nervos.
Addition of a file symlink for ease in Nervos message handling
A symlink named messages-nervos.proto
was added in legacy/firmware/protob/
directory that leads to common/protob/messages-nervos.proto
for easier Nervos message handling.
Support for Nervos-specific CLI commands
For facilitating command-line interaction with the Nervos Network, nervos.py
is introduced to the python/src/trezorlib/cli/
directory. In parallel, trezorctl.py
in the same directory is updated to support these new Nervos commands.
Introduction of new message types in messages.py
New message types NervosGetAddress
, NervosAddress
, NervosSignTx
, NervosSignedTx
are included in the messages.py
file with a new nervos.py
module that provides functions get_address
and sign_tx
for more flexible interaction with the Nervos blockchain.
add nervos support based on mini, including the function of get addresses and signatures