Merge pull request #11 from ryanxcharles/feature/export-transaction-constants

Export transaction constants for use in cosign
This commit is contained in:
Ryan X. Charles 2014-01-06 04:21:48 -08:00
commit 2314a9dd29
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 ||