当前位置: 首页 > 工具软件 > trezor-core > 使用案例 >

运行Trezor 钱包suite项目+firmware项目

荀辰钊
2023-12-01

一些流程


前言

记录一些硬件钱包的文档信息之类


一、trezor钱包

doc文档:https://docs.trezor.io/

 

一、firmware的安装步骤

linux - 在Windows 10上安装WSL2 - 个人文章 - SegmentFault 思否

 

二、suite官方操作 步骤

GitHub - trezor/trezor-suite: Trezor Suite Monorepo

Before you start make sure you have downloaded and installed NVMYarn and git with git lfs.

  • git clone git@github.com:trezor/trezor-suite.git
  • git submodule update --init --recursive
  • git lfs pull
  • nvm install
  • yarn
  • yarn build:libs && yarn workspace @trezor/message-system sign-config

It's recommended to enable git config --global submodule.recurse true so you don't need to run git submodule update --init --recursive every time when submodules are updated.

To set up your dev environment for a native platform (iOS/Android) follow these additional steps.

Run a dev build:

  • yarn suite:dev (web app)
  • yarn suite:dev:desktop (electron app)

1.git

代码如下(示例):

git clone 。。。

然後出現报错:

Git报错解决:OpenSSL SSL_read: Connection was reset, errno 10054_你脸上有BUG的博客-CSDN博客

git config --global http.sslVerify "false"

解决fatal: unable to access xxx: Failed to connect to github.com port 443: Timed out_DeadPool loves Star的博客-CSDN博客

在控制面板的》网络和共享中心》internet选项》 连接》局域网设置

git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080

2.接着

  • cd trezor-suite
  • git submodule sync --recursive(需要这个!)
  • git submodule update --init --recursive
git lfs pull
  • nvm install
  • yarn
  • yarn build:libs && yarn workspace @trezor/message-system sign-config

三、代码分析

1.doc的分析

Repository Structure

  • ciGitlab CI configuration files
  • common/defs: JSON coin definitions and support tables
  • common/protob: Common protobuf definitions for the Trezor protocol
  • common/tools: Tools for managing coin definitions and related data
  • core: Trezor Core, firmware implementation for Trezor T
  • crypto: Stand-alone cryptography library used by both Trezor Core and the Trezor One firmware
  • docs: Assorted documentation
  • legacy: Trezor One firmware implementation
  • python: Python client library and the trezorctl command
  • storage: NORCOW storage implementation used by both Trezor Core and the Trezor One firmware
  • tests: Firmware unit test suite
  • tools: Miscellaneous build and helper scripts
  • vendor: Submodules for external dependencies

ci: 这个文件夹包含了Gitlab CI的配置文件,可以用于在Gitlab上进行自动化构建、集成和部署。

common/defs: 这个文件夹包含了各种数字货币的定义文件和相关的支持表格,例如货币的单位、地址格式、交易格式、手续费等等。

common/protob: 这个文件夹包含了Trezor协议的通用protobuf定义,用于描述Trezor设备和客户端之间的通信协议。

common/tools: 这个文件夹包含了用于管理各种数字货币定义和相关数据的工具,例如转换货币定义格式、生成代码等等。

core: 这个文件夹包含了Trezor T的固件实现,也就是Trezor T的主要功能代码。

crypto: 这个文件夹包含了一个用于提供加密功能的独立库,它被Trezor Core和Trezor One固件都使用。

docs: 这个文件夹包含了各种文档,例如项目的设计文档、API文档和开发者指南等等。

legacy: 这个文件夹包含了Trezor One固件的实现代码。

python: 这个文件夹包含了Python客户端库和trezorctl命令,这使得开发者可以使用Python编写Trezor应用程序并与Trezor设备进行交互。

storage: 这个文件夹包含了一个用于提供NORCOW存储功能的实现,它被Trezor Core和Trezor One固件都使用。

tests: 这个文件夹包含了Trezor固件的单元测试套件。

tools: 这个文件夹包含了各种构建和帮助脚本,例如用于构建固件、打包二进制文件等等。

vendor: 这个文件夹包含了外部依赖项的子模块,例如libusb库和btchip库。


总结

提示:这里对文章进行总结:
例如:以上就是今天要讲的内容,本文仅仅简单介绍了pandas的使用,而pandas提供了大量能使我们快速便捷地处理数据的函数和方法。

 类似资料: