You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

20 lines
453 B

var HDKey = require('../')
var fixtures = require('./fixtures')
require('terst')
function encode(buf) {
}
describe('hdkey', function() {
it('should properly derive the chain path', function() {
fixtures.valid.forEach(function(f) {
var hdkey = new HDKey(new Buffer(f.seed, 'hex'))
var childkey = hdkey.derive(f.path)
EQ (encode(childkey.private), f.private)
EQ (encode(childkey.public), f.public)
})
})
})