trezor/trezor-suite

GitHub: trezor/trezor-suite

Trezor 官方开源的硬件钱包管理套件,支持桌面、Web 和移动端,并提供开发者 API 集成能力。

Stars: 962 | Forks: 336

# TREZOR SUITE MONOREPO 欢迎使用 Trezor Suite 代码库!该代码库包含 3 个项目的源代码: - **Connect** - 一种工具,为开发者提供了将 Trezor 功能轻松集成到其自有应用程序中的途径 - **Trezor Suite** - 用于管理 Trezor 硬件钱包的桌面和 Web 应用程序 - **Trezor Suite Mobile** - 专为管理 Trezor 硬件钱包设计的手机/平板应用程序 ![img](https://repository-images.githubusercontent.com/148657224/439f6100-765f-11e9-9bff-b725eef3c4a6) # 开发 ### 前置条件 - 安装 [NVM](https://github.com/nvm-sh/nvm) - _提示:你可以让你的 shell 在每个代码库中[自动切换版本](https://github.com/nvm-sh/nvm/blob/master/README.md#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file)_ - 通过 npm 启用 [Yarn](https://yarnpkg.com/getting-started/install) - 安装 [Git LFS](https://git-lfs.github.com/)(对于 Linux/Ubuntu,在[添加仓库](https://packagecloud.io/github/git-lfs/install)后执行 `sudo apt-get install git-lfs`,更多信息请见[这里](https://github.com/git-lfs/git-lfs/blob/main/INSTALLING.md)) ### 快速开始 - `git clone git@github.com:trezor/trezor-suite.git` - `cd trezor-suite` - `git submodule update --init --recursive` - `git lfs install` // 为你的用户账户设置 Git LFS。每个用户账户只需运行一次。 - `git lfs pull` - `nvm install` - `yarn` - `yarn build:essential` 建议启用 `git config --global submodule.recurse true`,这样当子模块更新时,你就不需要每次都运行 `git submodule update --init --recursive` 了。 ## **Connect** @trezor/connect 此代码库用于开发 @trezor/connect 的版本 9。详细文档请参阅此[页面](./docs/packages/connect/index.md)。 历史上,Trezor Connect 曾拥有[独立的代码库](https://github.com/trezor/connect)。该代码库现已归档。 ## **Trezor Suite** @trezor/suite 开发环境主要支持 **macOS 或 Linux**, 不过,按照[本指南](https://docs.trezor.io/trezor-suite/misc/development-on-windows.html)操作,也可以在 Windows 上进行开发。 运行开发构建: - `yarn suite:dev` (Web 应用) - `yarn suite:dev:vite` (⚠️ 实验性:使用 Vite 打包器的 Web 应用,仅用于**开发**,如果你希望与生产环境应用保持一致,请使用 `yarn suite:dev`) - `yarn suite:dev:desktop` (Electron 应用) - React 开发工具可用,但有一个已知问题:你需要在打开开发工具的情况下重新加载渲染器进程 (Ctrl+R 或 Cmd+R) - `yarn suite:build:web:preview` (应用了安全头的生产环境 Web 应用的本地预览) 本地 `.env` 设置(可选): - 将仓库根目录下的 `env.local.example` 重命名为 `.env.local`。 - 设置 `TANSTACK_REACT_QUERY_DEV_TOOLS=true` 以在本地环境中启用 TanStack React Query Devtools。 ## **Trezor Suite Mobile** @suite-native/app ## 贡献 灵感来源于 [GitLab 贡献指南](https://docs.gitlab.com/ee/development/contributing/) 必须使用 [Conventional Commits](COMMITS.md)。 ## 安全漏洞披露 请私下向 [security@satoshilabs.com](mailto:security@satoshilabs.com) 报告疑似的安全漏洞,另请参阅 [Trezor.io 网站上的披露部分](https://trezor.io/support/a/how-to-report-a-security-issue)。请勿为疑似的安全漏洞创建公开可见的 issue。 ## IDE 特定设置 请在 [IDE.md](./IDE.md) 中查找集成开发环境 (IDE) 的特定设置
标签:API集成, CMS安全, Git LFS, GNU通用公共许可证, JavaScript, MITM代理, Node.js, NVM, React, Syscalls, Trezor Suite, TypeScript, Yarn, 以太坊, 冷钱包, 加密安全, 加密货币, 加密货币钱包, 区块链, 可观测性, 套件, 威胁情报, 安全插件, 开发者工具, 开源, 数字货币, 数字资产管理, 桌面应用, 比特币, 硬件钱包, 私钥管理, 移动应用, 自动化攻击, 自动化攻击, 自动化攻击, 配置审计