ECPair/HDNode: adds getNetwork
This commit is contained in:
parent
57d0ea84a2
commit
daafb9794e
4 changed files with 28 additions and 0 deletions
|
@ -105,6 +105,10 @@ ECPair.prototype.getAddress = function () {
|
|||
return bs58check.encode(payload)
|
||||
}
|
||||
|
||||
ECPair.prototype.getNetwork = function () {
|
||||
return this.network
|
||||
}
|
||||
|
||||
ECPair.prototype.getPublicKeyBuffer = function () {
|
||||
return this.Q.getEncoded(this.compressed)
|
||||
}
|
||||
|
|
|
@ -136,6 +136,10 @@ HDNode.prototype.getFingerprint = function () {
|
|||
return this.getIdentifier().slice(0, 4)
|
||||
}
|
||||
|
||||
HDNode.prototype.getNetwork = function () {
|
||||
return this.keyPair.getNetwork()
|
||||
}
|
||||
|
||||
HDNode.prototype.getPublicKeyBuffer = function () {
|
||||
return this.keyPair.getPublicKeyBuffer()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue