witness1 method

Transaction witness1(
  1. Transaction r1, {
  2. PoolHeader? header,
  3. ({List<int> outpoint, List<int> parts, Transaction tx})? next,
  4. List<int>? bundles,
})

Implementation

Transaction witness1(Transaction r1, {PoolHeader? header, ({Transaction tx, List<int> outpoint, List<int> parts})? next, List<int>? bundles}) {
  final y = next ?? y1;
  return svc.createWitnessTxn(signer, fundingB, r1, hex.decode(r0.serialize()), opPub, opPKH, ShieldedPoolAction.ROUND,
      newOwnerPKH: hex.decode(opPKH),
      newHeader: (header ?? f.h1).encode(),
      nextSlot: y.outpoint,
      slotParts: y.parts,
      verifierBody: f.body,
      bundles: bundles ?? f.bundles,
      receipts: [f.receipt]);
}