ECPair/HDNode: adds getNetwork
This commit is contained in:
parent
57d0ea84a2
commit
daafb9794e
4 changed files with 28 additions and 0 deletions
src
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue