HDNode: add sign/verify
This commit is contained in:
parent
d1abddb3de
commit
923266672b
2 changed files with 53 additions and 17 deletions
src
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue