HDNode: add sign/verify

This commit is contained in:
Daniel Cousens 2015-09-21 16:34:25 +10:00
parent d1abddb3de
commit 923266672b
2 changed files with 53 additions and 17 deletions

View file

@ -149,6 +149,14 @@ HDNode.prototype.neutered = function () {
return neutered
}
HDNode.prototype.sign = function (hash) {
return this.keyPair.sign(hash)
}
HDNode.prototype.verify = function (hash, signature) {
return this.keyPair.verify(hash, signature)
}
HDNode.prototype.toBase58 = function (__isPrivate) {
if (__isPrivate !== undefined) throw new TypeError('Unsupported argument in 2.0.0')