0.19.0 • Published 2 years ago
@painterpuppets-lumos/hd v0.19.0
@painterpuppets-lumos/hd
HD & Mnemonic implementation for lumos.
Usage
Create a new HD wallet.
const { mnemonic, ExtendedPrivateKey, Keystore } = require("@painterpuppets-lumos/hd")
const m = mnemonic.generateMnemonic()
const seed = mnemonic.mnemonicToSeedSync(m)
const extendedPrivateKey = ExtendedPrivateKey.fromSeed(seed)
const keystore = Keystore.create(extendedPrivateKey, "Your password")
// save keystore file
keystore.save("you path, only dir")
// load keystore file
const keystore = Keystore.load("you file path, with file name")
XPub support.
const { XPubStore } = require("@painterpuppets-lumos/hd")
// load from xpub file.
const xpub = XPubStore.load("you path")
// to AccountExtendedPublicKey
const accountExtendedPublicKey = xpub.toAccountExtendedPublicKey()
// save xpub file.
xpub.save("your path")
0.20.0-alpha.1
2 years ago
0.20.0-alpha.0
2 years ago
0.19.0
2 years ago
0.20.0
2 years ago
0.19.1-alpha.0
2 years ago
0.19.0-next.0
2 years ago
0.18.1-next.0
2 years ago
0.18.0
2 years ago