Merge pull request #1004 from bitpay/expose/sighash
Transaction: expose the sighash namespace
This commit is contained in:
commit
1f563893c7
1
index.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;
|
||||
|
|
|
@ -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…
Reference in New Issue