Removes toPaddedBuffer and extends toBuffer
This commit is contained in:
parent
d8883e8d32
commit
df6ea8aea2
4 changed files with 25 additions and 27 deletions
src
|
@ -65,7 +65,7 @@ ECKey.prototype.sign = function(hash) {
|
|||
|
||||
// Export functions
|
||||
ECKey.prototype.toBuffer = function() {
|
||||
return this.D.toPaddedBuffer(32)
|
||||
return this.D.toBuffer(32)
|
||||
}
|
||||
ECKey.prototype.toHex = function() {
|
||||
return this.toBuffer().toString('hex')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue