feat: taproot escrow backend - #2427
Draft
keshav0479 wants to merge 5 commits into
Draft
Conversation
|
Great work on this PR! The backend implementation looks solid. I'm available to help with the frontend integration (keypair generation, PSBT signing UI) if needed. This could help move the 600k sats bounty forward. Happy to discuss further. |
This was referenced Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Been porting the taptrade-core Rust implementation to the Python backend for a while now. This adds the backend pieces needed for non-custodial on-chain escrow using Taproot/MAST.
Refs #230
What's in this PR
is_taprootflag, FKMAST tree
Internal key: MuSig2(maker, taker) - keypath (happy path)
Leaf A: maker + coordinator (dispute)
Leaf B: taker + coordinator (dispute)
Leaf C: maker + after(12228) (protection ~85 days)
Leaf D: maker + taker + after(2048) (rescue ~14 days)
Coordinator is an orchestrator, not a custodian - can't spend without a trader's co-signature.
Still TODO
Opening as draft to get early feedback on the approach. Happy to iterate on anything.
Checklist before merging
pip install pre-commit, thenpre-commit install. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.