You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
proof+tapsend: sanity-check STXO proofs at creation and enforce count
Harden transition proof generation by validating STXO inclusion proofs
at creation time instead of relying solely on later verification.
Changes:
* Require alt leaves for transfer root assets and nonempty prev
witnesses.
* Ensure alt leaf count is at least the number of prev witnesses.
* Validate each STXO proof is non-nil and includes a non-nil AssetProof.
* Enforce a 1:1 count between STXO inclusion proofs and asset input
witnesses.
* Return clear errors for missing alt leaves, prev witnesses, or asset
proofs.
Tests:
* Update `tapsend/proof_test.go` to assert the new failure modes.
* Table test now expects `no alt leaves for transfer root asset` when
STXO proofs are absent and checks error paths before proceeding.
Result:
* Fail fast on malformed proofs.
* Prevents incomplete STXO proofs from entering the pipeline.
* Guarantees proof count matches the number of inputs being spent.
0 commit comments