Removes toPaddedBuffer and extends toBuffer

This commit is contained in:
Daniel Cousens 2014-04-25 00:18:13 +10:00
parent d8883e8d32
commit df6ea8aea2
4 changed files with 25 additions and 27 deletions

View file

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