0.23.0 • Published 10 months ago

@ckb-lumos/hd v0.23.0

Weekly downloads
8
License
MIT
Repository
github
Last release
10 months ago

@ckb-lumos/hd

HD & Mnemonic implementation for lumos.

Usage

Create a new HD wallet.

const { mnemonic, ExtendedPrivateKey, Keystore } = require("@ckb-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("@ckb-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.23.0-next.0

1 year ago

0.23.0-next.1

1 year ago

0.23.0

1 year ago

0.24.0-next.2

11 months ago

0.24.0-next.1

12 months ago

0.24.0-next.0

1 year ago

0.22.2

1 year ago

0.22.1

1 year ago

0.22.0

1 year ago

0.22.0-next.5

1 year ago

0.22.0-next.4

1 year ago

0.22.0-next.3

1 year ago

0.22.0-next.2

1 year ago

0.22.0-next.1

2 years ago

0.22.0-next.0

2 years ago

0.21.1

2 years ago

0.21.0

2 years ago

0.20.0

2 years ago

0.21.0-next.0

2 years ago

0.21.0-next.1

2 years ago

0.21.0-next.2

2 years ago

0.21.0-next.3

2 years ago

0.20.0-alpha.3

2 years ago

0.20.0-alpha.2

2 years ago

0.19.0

3 years ago

0.20.0-alpha.0

3 years ago

0.20.0-alpha.1

3 years ago

0.19.0-beta.0

3 years ago

0.19.0-alpha.3

3 years ago

0.19.0-alpha.2

3 years ago

0.19.0-alpha.1

3 years ago

0.19.0-alpha.0

3 years ago

0.17.0

3 years ago

0.18.0

3 years ago

0.18.0-rc6

3 years ago

0.17.0-rc9

3 years ago

0.17.0-rc10

3 years ago

0.18.0-rc7

3 years ago

0.18.0-rc5

3 years ago

0.18.0-rc3

4 years ago

0.18.0-rc4

3 years ago

0.17.0-rc7

3 years ago

0.17.0-rc6

4 years ago

0.17.0-rc8

3 years ago

0.18.0-rc2

4 years ago

0.18.0-rc1

4 years ago

0.17.0-rc5

4 years ago

0.16.0

4 years ago

0.15.0

4 years ago

0.14.2-rc6

5 years ago

0.14.2-rc5

5 years ago

0.14.2-rc4

5 years ago

0.14.2-rc3

5 years ago

0.14.2-rc2

5 years ago

0.14.2-rc1

5 years ago

0.14.1

5 years ago

0.14.0

5 years ago

0.13.3

5 years ago

0.13.2

5 years ago

0.13.1

5 years ago

0.13.0

5 years ago