iw-nkn
v1.0.0
Published
>> This project provides a simple package to realize the core logic of the wallet. If you have any questions, please ask at the following website [icanwallet](https://github.com/icanwallet/icanwallet)
Downloads
2
Readme
iw-nkn
This project provides a simple package to realize the core logic of the wallet. If you have any questions, please ask at the following website icanwallet
use case
//from mnemonic
const ecc = require('iw-nkn/iw-address')
const wallet = ecc.fromMnemonic(mnemonic)
console.log(wallet)
//from privateKey
const wallet2 = ecc.fromPrivateKey(wallet.privateKey)
console.log(wallet2)
//check address
console.log(ecc.isAddress(wallet.address))