|
|
@ -75,10 +75,14 @@ Transaction.prototype._getHash = function() { |
|
|
|
return Hash.sha256sha256(this.toBuffer()); |
|
|
|
}; |
|
|
|
|
|
|
|
Transaction.prototype.serialize = function() { |
|
|
|
Transaction.prototype.serialize = Transaction.prototype.toString = function() { |
|
|
|
return this.toBuffer().toString('hex'); |
|
|
|
}; |
|
|
|
|
|
|
|
Transaction.prototype.inspect = function () { |
|
|
|
return '<Transaction: ' + this.toString() + '>'; |
|
|
|
}; |
|
|
|
|
|
|
|
Transaction.prototype.toBuffer = function() { |
|
|
|
var writer = new BufferWriter(); |
|
|
|
return this.toBufferWriter(writer).toBuffer(); |
|
|
|