3.0.20 • Published 1 year ago
@secux/utility
Licence
Apache-2.0
Version
3.0.20
Deps
6
Size
57 kB
Vulns
1
Weekly
0
@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) |