Export transaction constants for use in cosign

This commit is contained in:
Ryan X. Charles 2014-01-05 23:04:27 -05:00
parent 013778d0f0
commit 4508c14556
1 changed files with 5 additions and 0 deletions

View File

@ -428,6 +428,11 @@ function spec(b) {
var SIGHASH_SINGLE = 3;
var SIGHASH_ANYONECANPAY = 80;
Transaction.SIGHASH_ALL=SIGHASH_ALL;
Transaction.SIGHASH_NONE=SIGHASH_NONE;
Transaction.SIGHASH_SINGLE=SIGHASH_SINGLE;
Transaction.SIGHASH_ANYONECANPAY=SIGHASH_ANYONECANPAY;
Transaction.prototype.hashForSignature =
function hashForSignature(script, inIndex, hashType) {
if (+inIndex !== inIndex ||