Move input to subfolder before refactor
Gonna inherit from it on two subclasses: "P2SH Input" and "P2PKH Input" They'll have a `addSignature` method, to deal with new signatures, a `clearSignatures`, in case the outputs change and the signatures get invalidated, `countMissingSignatures`, and a reference to the UTXO they'll be spending, so all logic regarding "p2sh mapping" gets to be in here and the Transaction class is not polluted.
This commit is contained in:
parent
1dfb7f1d02
commit
ef49dda0fd
5
lib/transaction/input/index.js
Normal file
5
lib/transaction/input/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
var Input = require('./input');
|
||||
|
||||
module.exports = Input;
|
||||
@ -1,11 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
var _ = require('lodash');
|
||||
var BufferWriter = require('../encoding/bufferwriter');
|
||||
var BufferWriter = require('../../encoding/bufferwriter');
|
||||
var buffer = require('buffer');
|
||||
var bufferUtil = require('../util/buffer');
|
||||
var jsUtil = require('../util/js');
|
||||
var Script = require('../script');
|
||||
var bufferUtil = require('../../util/buffer');
|
||||
var jsUtil = require('../../util/js');
|
||||
var Script = require('../../script');
|
||||
|
||||
function Input(params) {
|
||||
if (!(this instanceof Input)) {
|
||||
Loading…
Reference in New Issue
Block a user