hdwallet: remove fromHex, add better tests for edge cases

This commit is contained in:
Kyle Drake 2014-05-25 11:58:10 +10:00
parent dd3e171212
commit 600209b1a6
2 changed files with 21 additions and 4 deletions

View file

@ -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')