OneKeyHQ / firmware

Other
61 stars 46 forks source link

Integration of a new network. #442

Open maptuhec opened 1 year ago

maptuhec commented 1 year ago

Hi team,

Together with a client partner we would like to integrate a new blockchain network into the OneKey wallets. We have went through the documentation but we haven't found any documents on how we can proceed with that. Following a discussion with your team, we were suggested to open an issue and proceed forward.

The blockchain network is - https://www.nervos.org/

The end goal is to be able to execute and sign transactions to the network via OneKey hardware wallets.

We would be happy to support with everything from our side, and we are open for discussions and communications.

Cheers.

lyxyx commented 1 year ago

You can add a network to OneKey Touch by following these steps

  1. Run the onekey emulator Emulator is a unix version of Core firmware that runs on your computer. follow the Getting Onboard instructions.

  2. Adding a Network implementation You can refer to this pr to familiarize yourself with what code needs to be updated to add a network.

  3. Testing Test the newly added interface with the cli subcommand implemented in step 2, and then verify it against the nervos jssdk signing results. The cli utility is located in the {project-dir}/.venv directory and should be installed as follows: cd python && poetry run python3 -m pip install .