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

@onekeyfe/hd-transport-react-native

Package Overview
Dependencies
Maintainers
2
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onekeyfe/hd-transport-react-native

`@onekeyfe/hd-transport-react-native` is a library that implements transport communication by [react-native-ble-plx](https://github.com/dotintent/react-native-ble-plx).

  • 1.0.7-alpha.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

@onekeyfe/hd-transport-react-native

@onekeyfe/hd-transport-react-native is a library that implements transport communication by react-native-ble-plx.

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
  • 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.
  2. yarn update-submodules to update firmware submodule
  3. yarn update:protobuf to generate new ./messages.json and ./src/types/messages.ts

git submodule update --init --recursive to initialize firmware submodule yarn update-submodules to update firmware submodule yar update:protobuf to generate new ./messages.json and ./src/types/messages.ts

Docs

Documentation is available hardware-js-sdk

FAQs

Package last updated on 26 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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