@secux/utility
TypeScript icon, indicating that this package has built-in type declarations

3.0.17 • Public • Published

@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)

Readme

Keywords

Package Sidebar

Install

npm i @secux/utility

Weekly Downloads

3

Version

3.0.17

License

Apache-2.0

Unpacked Size

57.9 kB

Total Files

19

Last publish

Collaborators

  • rus7hex