Input.match constructor
Given a RawInput and witness data, the specific Input subclass is
returned. If there is no witness data for the input, the witness
can be
excluded or provided as an empty list.
Implementation
factory Input.match(RawInput raw, [List<Uint8List> witness = const[]])
=> P2PKHInput.match(raw)
?? P2SHMultisigInput.match(raw)
?? WitnessInput.match(raw, witness)
?? raw;