@secux/utility
v3.0.18
Published
SecuX Hardware Wallet internal tools for SDK
Downloads
99
Readme
@secux/utility
SecuX Hardware Wallet internal tools for SDK
Logger module configuration (default: disabled)
- Add the code to your project starting point:
require("@secux/utility/lib/logger");
Install following packages:
- for web:
npm install --save-dev winston setimmediate
- for react-native:
npm install --save-dev react-native-logs
- for web:
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";
- for web:
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) |