|
1 |
| -## OneKey |
| 1 | +<p align="center"> |
| 2 | +<img width="200" src="https://github.com/rayston92/graph_bed/blob/e3b2c938fc5b17d68531f69178908afb16266e6a/img/onekey_logo_badge_border.png?raw=trueg"/> |
| 3 | +</p> |
2 | 4 |
|
3 |
| - **🔑 OneKey is the smartest way to secure, buy, exchange and grow your crypto assets.** Learn more [here](https://www.onekey.so/). |
| 5 | +--- |
4 | 6 |
|
5 |
| ----- |
| 7 | +[](https://github.com/OneKeyHQ/firmware/stargazers) |
| 8 | +[](https://github.com/OneKeyHQ/firmware/releases) |
| 9 | +[](https://github.com/OneKeyHQ/firmware/graphs/contributors) |
| 10 | +[](https://github.com/OneKeyHQ/firmware/commits/onekey) |
| 11 | +[](https://github.com/OneKeyHQ/firmware/issues?q=is%3Aissue+is%3Aopen) |
| 12 | +[](https://github.com/OneKeyHQ/firmware/pulls?q=is%3Apr+is%3Aopen) |
| 13 | +[](https://discord.gg/onekey) |
| 14 | +[](https://twitter.com/OneKeyHQ) |
6 | 15 |
|
7 |
| - |
8 | 16 |
|
| 17 | +## Community & Support |
9 | 18 |
|
10 |
| -## Repository Structure |
| 19 | +- [Community Forum](https://github.com/orgs/OneKeyHQ/discussions). Best for: help with building, discussion about best practices. |
| 20 | +- [GitHub Issues](https://github.com/OneKeyHQ/firmware/issues). Best for: bugs and errors you encounter using OneKey. |
| 21 | +- [Discord](https://discord.gg/onekey). Best for: sharing your ideas and hanging out with the community. |
11 | 22 |
|
12 |
| -* **[`ci`](ci/)**: [Gitlab CI](https://gitlab.com/satoshilabs/trezor/trezor-firmware) configuration files |
13 |
| -* **[`common/defs`](common/defs/)**: JSON coin definitions and support tables |
14 |
| -* **[`common/protob`](common/protob/)**: Common protobuf definitions for the Trezor protocol |
15 |
| -* **[`common/tools`](common/tools/)**: Tools for managing coin definitions and related data |
16 |
| -* **[`core`](core/)**: Trezor Core, firmware implementation for Trezor T |
17 |
| -* **[`crypto`](crypto/)**: Stand-alone cryptography library used by both Trezor Core and the Trezor One firmware |
18 |
| -* **[`docs`](docs/)**: Assorted documentation |
19 |
| -* **[`legacy`](legacy/)**: Trezor One firmware implementation |
20 |
| -* **[`python`](python/)**: Python [client library](https://pypi.org/project/trezor) and the `trezorctl` command |
21 |
| -* **[`storage`](storage/)**: NORCOW storage implementation used by both Trezor Core and the Trezor One firmware |
22 |
| -* **[`tests`](tests/)**: Firmware unit test suite |
23 |
| -* **[`tools`](tools/)**: Miscellaneous build and helper scripts |
24 |
| -* **[`vendor`](vendor/)**: Submodules for external dependencies |
25 | 23 |
|
| 24 | +## 🚀 Getting Onboard |
26 | 25 |
|
27 |
| -## Contribute |
| 26 | +1. Install [poetry](https://python-poetry.org/) |
| 27 | +2. Install [nix](https://nixos.org/download.html) |
| 28 | +3. Pulling the latest code via the git command line tool, setting up the development environment |
28 | 29 |
|
29 |
| -See [CONTRIBUTING.md](docs/misc/contributing.md). |
| 30 | +``` |
| 31 | + git clone --recurse-submodules https://github.com/OneKeyHQ/onekey-firmware.git |
| 32 | + cd onekey-firmware |
| 33 | + poetry install |
| 34 | + nix-shell |
| 35 | +``` |
30 | 36 |
|
31 |
| -Using [Conventional Commits](COMMITS.md) is strongly recommended and might be enforced in future. |
| 37 | +4. Run the build with: |
32 | 38 |
|
33 |
| -Also please have a look at the docs, either in the `docs` folder or at [docs.trezor.io](https://docs.trezor.io) before contributing. The [misc](docs/misc/index.md) chapter should be read in particular because it contains some useful assorted knowledge. |
| 39 | +``` |
| 40 | + cd core && poetry run make build_unix |
| 41 | +``` |
34 | 42 |
|
35 |
| -## Security vulnerability disclosure |
| 43 | +5. Now you can start the emulator |
36 | 44 |
|
37 |
| -Please report suspected security vulnerabilities in private to [[email protected]](mailto:[email protected]), Please do NOT create publicly viewable issues for suspected security vulnerabilities. |
| 45 | +``` |
| 46 | + poetry run ./emu.py |
| 47 | +``` |
38 | 48 |
|
39 |
| -## Documentation |
| 49 | +6. You can now install the command line client utility to interact with the emulator |
40 | 50 |
|
41 |
| -See the `docs` folder or visit [docs.trezor.io](https://docs.trezor.io). |
| 51 | +``` |
| 52 | + cd python && poetry run python3 -m pip install . |
| 53 | +``` |
| 54 | + |
| 55 | +## ✏ Contribute |
| 56 | + |
| 57 | +- Adding a small feature or a fix |
| 58 | + |
| 59 | + If your change is somewhat subtle, feel free to file a PR in one of the appropriate repositories directly. See the PR requirements noted at [CONTRIBUTING.md](docs/misc/contributing.md) |
| 60 | + |
| 61 | +- Add new coin/token/network to the official onekey firmware |
| 62 | + |
| 63 | + See [COINS.md](docs/misc/COINS.md) |
| 64 | + |
| 65 | +Also please have a look at the [docs](docs/SUMMARY.md) before contributing. The misc chapter should be read in particular because it contains some useful assorted knowledge. |
| 66 | + |
| 67 | +## 🔒 Security |
| 68 | + |
| 69 | +- Please read [Bug Bunty Rules](https://github.com/OneKeyHQ/app-monorepo/blob/onekey/docs/BUG_RULES.md), we have detailed the exact plan in this article. |
| 70 | +- Please report suspected security vulnerabilities in private to [email protected] |
| 71 | +- Please do NOT create publicly viewable issues for suspected security vulnerabilities. |
| 72 | +- As an open source project, although we are not yet profitable, we try to give some rewards to white hat hackers who disclose vulnerabilities to us in a timely manner. |
| 73 | + |
| 74 | +## ✨ Salute! |
| 75 | + |
| 76 | +[](https://github.com/OneKeyHQ/firmware/graphs/contributors) |
| 77 | + |
| 78 | +<a href="https://github.com/onekeyhq/firmware/graphs/contributors"> |
| 79 | + <img src="https://contrib.rocks/image?repo=onekeyhq/firmware&max=240&columns=24"/> |
| 80 | +</a> |
0 commit comments