JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q31354F
  • License Apache-2.0

SecuX Hardware Wallet internal tools for SDK

Package Exports

  • @secux/utility
  • @secux/utility/lib/BIP32Path
  • @secux/utility/lib/BIP32Path.js
  • @secux/utility/lib/bs58
  • @secux/utility/lib/bs58.js
  • @secux/utility/lib/communication
  • @secux/utility/lib/communication.js
  • @secux/utility/lib/secp256k1
  • @secux/utility/lib/secp256k1.js
  • @secux/utility/lib/utility.js
  • @secux/utility/lib/xpub
  • @secux/utility/lib/xpub.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@secux/utility) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@secux/utility

SecuX Hardware Wallet internal tools for SDK

Logger module configuration (default: disabled)

  1. Add the code to your project starting point:
require("@secux/utility/lib/logger");
  1. Install following packages:

    • for web:
      npm install --save-dev winston setimmediate
    • for react-native:
      npm install --save-dev react-native-logs
  2. Configure global environment with your bundler or at project starting point:

    • for web:
      // use this line to trigger debug level
      process.env.DISTRIBUTION = "development";
      process.env.LOGGER = "winston";
    • for react-native:
      // use this line to trigger debug level
      process.env.DISTRIBUTION = "development";
      process.env.LOGGER = "react-native-logs";

API doc

toExtenededPublicKey(path, parentFingerPrint, chainCode, publicKey) ⇒ String

Convert publicKey to extended publicKey

Kind: global function
Returns: String - extended publicKey

Param Type Description
path string BIP32 path
parentFingerPrint Buffer byte(4)
chainCode Buffer byte(32)
publicKey Buffer byte(33)