0.7.3 • Published 7 years ago
hdwallet v0.7.3
hdwallet
Installation
$ npm i hdwallet
Constructor
var HDWallet = require('hdwallet')
var hd = new HDWallet({
settings = settings || {}
redisPort: 'optional',
redisHost: 'optional',
network: 'optional',
mnemonic: 'optional',
privateSeed: 'optional' // deprecated
})
API's
HDWallet.encryptPrivateKey(privateWif, password, progressCallback) // BIP38
HDWallet.decryptPrivateKey(encryptedPrivKey, password, network, progressCallback) // BIP38
HDWallet.createNewKey(network, password, progressCallback)
HDWallet.generateMnemonic() // BIP39
HDWallet.validateMnemonic() // BIP39
HDWallet.getInputAddresses(txHex, network)
HDWallet.sign(unsignedTxHex, privateKey)
HDWallet.prototype.init(cb)
HDWallet.prototype.afterRedisInit(cb)
HDWallet.prototype.getKeyPrefix()
HDWallet.prototype.getSavedKey(key, cb)
HDWallet.prototype.getNextAccount(cb)
HDWallet.prototype.setNextAccount(nextAccount)
HDWallet.prototype.registerAddress(address, accountIndex, addressIndex, change)
HDWallet.prototype.setDB(key, value)
HDWallet.prototype.getAddressPrivateKey(address, cb)
HDWallet.prototype.getAddressPath(address, cb)
HDWallet.prototype.discover(cb)
HDWallet.prototype.discoverAccount(accountIndex, cb)
HDWallet.prototype.discoverAddress(accountIndex, addressIndex, interval, cb)
HDWallet.prototype.registerAccount(account)
HDWallet.prototype.getPrivateSeed()
HDWallet.prototype.getMnemonic()
HDWallet.prototype.getPrivateKey(account, addressIndex)
HDWallet.prototype.getPublicKey(account, addressIndex)
HDWallet.prototype.isAddressActive(addresses, cb)
HDWallet.prototype.getAddress(account, addressIndex)
HDWallet.prototype.sign(unsignedTxHex, cb)
Testing
$ mocha
License
0.7.3
7 years ago
0.7.2
7 years ago
0.7.1
7 years ago
0.7.0
7 years ago
0.6.1
7 years ago
0.6.0
7 years ago
0.5.0
7 years ago
0.4.33
7 years ago
0.4.32
7 years ago
0.4.31
7 years ago
0.4.30
8 years ago
0.4.29
8 years ago
0.4.28
8 years ago
0.4.27
8 years ago
0.4.25
8 years ago
0.4.24
8 years ago
0.4.23
8 years ago
0.4.22
8 years ago
0.4.21
8 years ago
0.4.20
8 years ago
0.4.19
8 years ago
0.4.18
8 years ago
0.4.17
8 years ago
0.4.16
8 years ago
0.4.15
8 years ago
0.4.14
8 years ago
0.4.13
8 years ago
0.4.12
8 years ago
0.4.11
8 years ago
0.4.10
8 years ago
0.4.9
8 years ago
0.4.8
8 years ago
0.4.7
8 years ago
0.4.6
8 years ago
0.4.5
8 years ago
0.4.4
8 years ago
0.4.3
8 years ago
0.4.2
9 years ago
0.4.1
9 years ago
0.4.0
9 years ago
0.3.1
9 years ago
0.2.2
9 years ago
0.2.1
9 years ago
0.2.0
9 years ago
0.1.8
9 years ago
0.1.7
9 years ago
0.1.6
9 years ago
0.1.5
9 years ago
0.1.4
9 years ago
0.1.3
9 years ago
0.1.2
9 years ago
0.1.1
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago