@onekeyfe/hd-transport-http
Advanced tools
Comparing version 0.1.50 to 0.1.51
{ | ||
"name": "@onekeyfe/hd-transport-http", | ||
"version": "0.1.50", | ||
"version": "0.1.51", | ||
"description": "hardware http transport", | ||
@@ -28,7 +28,7 @@ "author": "OneKey", | ||
"dependencies": { | ||
"@onekeyfe/hd-shared": "^0.1.50", | ||
"@onekeyfe/hd-transport": "^0.1.50", | ||
"@onekeyfe/hd-shared": "^0.1.51", | ||
"@onekeyfe/hd-transport": "^0.1.51", | ||
"axios": "^0.27.2" | ||
}, | ||
"gitHead": "e3e2a8aa77a1bf72d1b26dc9841463a660a2f902" | ||
"gitHead": "0bc84671cf1fabb0f50339407dd43ad82ff096b8" | ||
} |
@@ -1,3 +0,29 @@ | ||
# @onekeyfe/hd-transport-http | ||
# `@onekeyfe/hd-transport-http` | ||
使用 http 协议与固件通信 | ||
`@onekeyfe/hd-transport-http` is a library that implements transport communication using http. | ||
## What is the purpose | ||
- translate JSON payloads to binary messages using protobuf definitions comprehensible to OneKey devices | ||
- chunking and reading chunked messages according to the [OneKey protocol](./protocol.md) | ||
- exposing single API for various transport methods: | ||
- Http Transport | ||
- React Native Transport | ||
- WebUSB | ||
- Create and expose typescript definitions based on protobuf definitions. | ||
### The short version | ||
In order to be able to use new features of onekey-firmware you need to update protobuf definitions. | ||
1. `git submodule update --init --recursive` to initialize git submodules. | ||
1. `yarn update-submodules` to update trezor-common submodule | ||
1. `yarn workspace @onekeyfe/transport update:protobuf` to generate new `./messages.json` and `./src/types/messages.ts` | ||
git submodule update --init --recursive to initialize trezor-common submodule | ||
yarn update-submodules to update trezor-common submodule | ||
yarn workspace @trezor/transport update:protobuf to generate new ./messages.json and ./src/types/messages.ts | ||
## Docs | ||
Documentation is available [hardware-js-sdk](https://developer.onekey.so/connect-to-hardware/hardware-sdk/start) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21295
30