Skip to content

Commit

Permalink
Merge pull request #1004 from bitpay/expose/sighash
Browse files Browse the repository at this point in the history
Transaction: expose the sighash namespace
  • Loading branch information
yemel committed Jan 27, 2015
2 parents 7b739d9 + da90ff8 commit 1f56389
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ bitcore.deps.elliptic = require('elliptic');

// Internal usage, exposed for testing/advanced tweaking
bitcore._HDKeyCache = require('./lib/hdkeycache');
bitcore.Transaction.sighash = require('./lib/transaction/sighash');

// module information
bitcore.version = 'v'+require('./package.json').version;
7 changes: 4 additions & 3 deletions test/transaction/sighash.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ var buffer = require('buffer');

var chai = require('chai');
var should = chai.should();
var Script = require('../../lib/script');
var Transaction = require('../../lib/transaction');
var sighash = require('../../lib/transaction/sighash');
var bitcore = require('../../');
var Script = bitcore.Script;
var Transaction = bitcore.Transaction;
var sighash = Transaction.sighash;

var vectors_sighash = require('../data/sighash.json');

Expand Down

0 comments on commit 1f56389

Please sign in to comment.