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:
Esteban Ordano 2014-12-11 09:10:51 -03:00
parent 1dfb7f1d02
commit ef49dda0fd
2 changed files with 9 additions and 4 deletions

View File

@ -0,0 +1,5 @@
'use strict';
var Input = require('./input');
module.exports = Input;

View File

@ -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)) {