Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onekeyfe/hd-transport-http

Package Overview
Dependencies
Maintainers
2
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onekeyfe/hd-transport-http - npm Package Compare versions

Comparing version 0.1.50 to 0.1.51

8

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc