Browse Source
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.patch-2
Esteban Ordano
10 years ago
2 changed files with 9 additions and 4 deletions
@ -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