ECPair/HDNode: adds getNetwork

This commit is contained in:
Daniel Cousens 2015-09-21 17:37:21 +10:00
parent 57d0ea84a2
commit daafb9794e
4 changed files with 28 additions and 0 deletions

View file

@ -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)
}