Skip to content

Commit bec3aea

Browse files
authored
docs(core): update docs (#95)
1 parent 8ae6d44 commit bec3aea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+321
-419
lines changed

README.md

Lines changed: 65 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,80 @@
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>
24

3-
**🔑 OneKey is the smartest way to secure, buy, exchange and grow your crypto assets.** Learn more [here](https://www.onekey.so/).
5+
---
46

5-
----
7+
[![Github Stars](https://img.shields.io/github/stars/OneKeyHQ/firmware?t&logo=github&style=for-the-badge&labelColor=000)](https://github.com/OneKeyHQ/firmware/stargazers)
8+
[![Version](https://img.shields.io/github/release/OneKeyHQ/firmware.svg?style=for-the-badge&labelColor=000)](https://github.com/OneKeyHQ/firmware/releases)
9+
[![](https://img.shields.io/github/contributors-anon/OneKeyHQ/firmware?style=for-the-badge&labelColor=000)](https://github.com/OneKeyHQ/firmware/graphs/contributors)
10+
[![Last commit](https://img.shields.io/github/last-commit/OneKeyHQ/firmware.svg?style=for-the-badge&labelColor=000)](https://github.com/OneKeyHQ/firmware/commits/onekey)
11+
[![Issues](https://img.shields.io/github/issues-raw/OneKeyHQ/firmware.svg?style=for-the-badge&labelColor=000)](https://github.com/OneKeyHQ/firmware/issues?q=is%3Aissue+is%3Aopen)
12+
[![Pull Requests](https://img.shields.io/github/issues-pr-raw/OneKeyHQ/firmware.svg?style=for-the-badge&labelColor=000)](https://github.com/OneKeyHQ/firmware/pulls?q=is%3Apr+is%3Aopen)
13+
[![Discord](https://img.shields.io/discord/868309113942196295?style=for-the-badge&labelColor=000)](https://discord.gg/onekey)
14+
[![Twitter Follow](https://img.shields.io/twitter/follow/OneKeyHQ?style=for-the-badge&labelColor=000)](https://twitter.com/OneKeyHQ)
615

7-
![make something people want](https://github.com/rayston92/graph_bed/blob/edc43bc1cd6ce6a19f3b6c30624a4b58f6870d1f/img/github_home_bg.png?raw=true)
816

17+
## Community & Support
918

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.
1122

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
2523

24+
## 🚀 Getting Onboard
2625

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
2829

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+
```
3036

31-
Using [Conventional Commits](COMMITS.md) is strongly recommended and might be enforced in future.
37+
4. Run the build with:
3238

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+
```
3442

35-
## Security vulnerability disclosure
43+
5. Now you can start the emulator
3644

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+
```
3848

39-
## Documentation
49+
6. You can now install the command line client utility to interact with the emulator
4050

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://img.shields.io/github/contributors-anon/OneKeyHQ/firmware?style=for-the-badge&labelColor=000)](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>

docs/SUMMARY.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@
1515
- [SLIP-39](core/misc/slip0039.md)
1616
- [Exceptions usage](core/misc/exceptions.md)
1717
- [Memory fragmentation management](core/misc/fragmentation.md)
18-
- [Legacy](legacy/index.md)
1918
- [Python](python/index.md)
2019
- [trezorlib](python/trezorlib.md)
2120
- [Hardware](hardware/index.md)
22-
- [Model T](hardware/model-t/index.md)
21+
- [Model T(touch)](hardware/model-t/index.md)
2322
- [Boot stages](hardware/model-t/boot.md)
2423
- [Memory layout](hardware/model-t/memory.md)
25-
- [Model One](hardware/model-one/index.md)
24+
- [Model One(mini/classic)](hardware/model-one/index.md)
2625
- [Firmware format](hardware/model-one/firmware-format.md)
2726
- [Common](common/index.md)
2827
- [Communication](common/communication/index.md)
@@ -38,9 +37,7 @@
3837
- [UI Tests](tests/ui-tests.md)
3938
- [Click Tests](tests/click-tests.md)
4039
- [CI](ci/index.md)
41-
- [GitLab CI Jobs](ci/jobs.md)
4240
- [Miscellaneous](misc/index.md)
43-
- [Affected third-parties](misc/third-parties.md)
4441
- [Coins' BIP-44 Paths](misc/coins-bip44-paths.md)
4542
- [Contributing](misc/contributing.md)
4643
- [FW update and device wipe](misc/update-wipes.md)
@@ -50,3 +47,4 @@
5047
- [Review Process](misc/review.md)
5148
- [Changelog](misc/changelog.md)
5249
- [TOIF Image Format](misc/toif.md)
50+
- [COINS](misc/COINS.md)

docs/book.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[book]
2-
title = "Trezor Firmware"
3-
description = "Documentation of Trezor Firmware."
2+
title = "Onekey Firmware"
3+
description = "Documentation of Onekey Firmware."
44
src = "."
55

66
[build]

docs/ci/index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
# CI
22

3-
The complete test suite is running on a public [GitLab CI](https://gitlab.com/satoshilabs/trezor/trezor-firmware). We currently do not have a CI for external contributors. If needed we will repush your PR to enable the CI.
4-
5-
See this [list](jobs.md) of CI jobs descriptions for more info.
6-
7-
The CI folder contains all the .yml GitLab files that are included in the main `.gitlab.yml` to provide some basic structure. All GitLab CI Jobs run inside a docker image, which is built using the present `Dockerfile`. This image is stored in the GitLab registry.
3+
The complete test suite is running on a public [GitLab CI](https://github.com/OneKeyHQ/firmware). We currently do not have a CI for external contributors. If needed we will repush your PR to enable the CI.

0 commit comments

Comments
 (0)