Browse Source

Merge pull request #1004 from bitpay/expose/sighash

Transaction: expose the sighash namespace
patch-2
Yemel Jardi 10 years ago
parent
commit
1f563893c7
  1. 1
      index.js
  2. 7
      test/transaction/sighash.js

1
index.js

@ -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
test/transaction/sighash.js

@ -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');

Loading…
Cancel
Save