@armada/sdk / index / planWitnessInputs
Function: planWitnessInputs()
planWitnessInputs(
plan):WitnessInput[]
Defined in: src/tx/plan.ts:199
Build the witness inputs for a plan from its OWN captured merkle proofs (SPEC §4.6). Reading plan.merkleProofs — snapshotted at plan time alongside plan.merkleRoot — rather than deriving proofs from live scan state is what keeps the path elements consistent with the proved root: a sync that appends to the tree between planning and proving no longer produces an unprovable stale-root witness. Throws if a proof is missing (a plan that wasn't built by the wallet).