Input constructor
Input({Uint8List hash, int index, Uint8List script, int sequence, int value, Uint8List prevOutScript, List<Uint8List> pubkeys List<Uint8List> signatures })
Implementation
Input(
{this.hash,
this.index,
this.script,
this.sequence,
this.value,
this.prevOutScript,
this.pubkeys,
this.signatures}) {
if (this.hash != null && this.hash.length != 32)
throw new ArgumentError("Invalid input hash");
if (this.index != null && !isUint(this.index, 32))
throw new ArgumentError("Invalid input index");
if (this.sequence != null && !isUint(this.sequence, 32))
throw new ArgumentError("Invalid input sequence");
if (this.value != null && !isSatoshi(this.value))
throw ArgumentError("Invalid ouput value");
}