Skip to content

test(rfq): prove confidential P2TR settlement - #25

Merged
tvolk131 merged 1 commit into
masterfrom
codex/confidential-rfq-settlement
Aug 4, 2026
Merged

test(rfq): prove confidential P2TR settlement#25
tvolk131 merged 1 commit into
masterfrom
codex/confidential-rfq-settlement

Conversation

@tvolk131

@tvolk131 tvolk131 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add deterministic offline coverage for a collaboratively blinded and signed confidential P2TR RFQ settlement between two wallets
  • add a live liquidregtest gate that issues distinct payment and outcome assets, rejects unilateral settlement, mines the complete swap, and proves both recipients can spend what they received
  • validate exact settlement intent, disclosure proofs, consensus proofs, signatures, and recipient-specific output recoverability across serialized PSET handoffs
  • wire the new gate into just regtest and document the focused command

Why

This completes the next RFQ-first roadmap milestone: prove the underlying two-wallet confidential settlement mechanics before freezing a production venue API or remote RFQ protocol. The implementation is deliberately test-local.

The test keeps the policy asset separate from the traded payment and outcome assets, exercises non-adjacent RFQ inputs and outputs, and includes fail-closed mutations. It also covers the ECDH-nonce case where public proofs and consensus validation can succeed while the intended recipient cannot unblind the output.

Validation

  • nix develop .#default --command just ci-checks
    • 213 tests passed, 6 skipped
    • documentation tests passed
    • WASM check passed
  • nix develop .#default --command just regtest-rfq-settlement
  • strict Clippy for the new integration test
  • git diff --check

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@tvolk131
tvolk131 marked this pull request as ready for review August 2, 2026 19:48
@tvolk131
tvolk131 merged commit 418eea4 into master Aug 4, 2026
2 checks passed
@tvolk131
tvolk131 deleted the codex/confidential-rfq-settlement branch August 4, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant