hdwallet: remove fromHex, add better tests for edge cases
This commit is contained in:
parent
dd3e171212
commit
600209b1a6
2 changed files with 21 additions and 4 deletions
src
|
@ -57,10 +57,6 @@ HDWallet.fromBase58 = function(string) {
|
|||
return HDWallet.fromBuffer(payload)
|
||||
}
|
||||
|
||||
HDWallet.fromHex = function(input) {
|
||||
return HDWallet.fromBuffer(new Buffer(input, 'hex'))
|
||||
}
|
||||
|
||||
HDWallet.fromBuffer = function(input) {
|
||||
assert.strictEqual(input.length, HDWallet.LENGTH, 'Invalid buffer length')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue