TaprootScriptInput.fromTaprootLeaf constructor

TaprootScriptInput.fromTaprootLeaf({
  1. required OutPoint prevOut,
  2. required Taproot taproot,
  3. required TapLeaf leaf,
  4. List<Uint8List>? stack,
  5. int sequence = Input.sequenceFinal,
})

Implementation

TaprootScriptInput.fromTaprootLeaf({
  required OutPoint prevOut,
  required Taproot taproot,
  required TapLeaf leaf,
  List<Uint8List>? stack,
  int sequence = Input.sequenceFinal,
}) : this(
  prevOut: prevOut,
  controlBlock: taproot.controlBlockForLeaf(leaf),
  tapscript: leaf.script,
  stack: stack,
  sequence: sequence,
);