From 54950c9abb736f15a308644a1f49bb5a2515632a Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Thu, 29 May 2014 01:19:28 +1000 Subject: [PATCH] Transaction: fix SIGHASH_* constant values --- src/transaction.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/transaction.js b/src/transaction.js index 8ae24f6..8090b3b 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -183,12 +183,10 @@ Transaction.prototype.toHex = function() { return this.toBuffer().toString('hex') } -//var OP_CODESEPARATOR = 171 - -var SIGHASH_ALL = 1 -var SIGHASH_NONE = 2 -var SIGHASH_SINGLE = 3 -var SIGHASH_ANYONECANPAY = 80 +var SIGHASH_ALL = 0x01 +var SIGHASH_NONE = 0x02 +var SIGHASH_SINGLE = 0x03 +var SIGHASH_ANYONECANPAY = 0x80 /** * Hash transaction for signing a specific input.