Repository navigation
Conversation
Dash Core has no Taproot (nor SegWit) consensus rules, so the inherited rust-bitcoin Taproot code is dead weight. Drop the `taproot` module, BIP341 sighash, P2TR address/script helpers, Taproot crypto re-exports and their tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Waiting for bot review — coderabbitai not yet. Wait for the missing reviews, or a writer can post |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Remove Taproot modules and crypto APIs crypto/src/key.rs, crypto/src/lib.rs, crypto/src/sighash.rs, dash/src/crypto/mod.rs, dash/src/lib.rs, dash/src/taproot.rs |
The Taproot module and its public APIs were removed, along with Taproot key and sighash type exports. |
Remove Taproot address support dash/src/address.rs, key-wallet-ffi/src/types.rs |
Taproot address types, constructors, parsing and decoding mappings, and x-only key relations were removed. The FFI conversion uses its existing fallback for P2tr. |
Remove Taproot script and witness support dash/src/blockdata/script/*, dash/src/blockdata/transaction/mod.rs, dash/src/blockdata/witness.rs, dash/src/consensus/encode.rs |
Taproot script constructors and checks, witness script extraction, key-spend weight predictions, and TapLeafHash consensus encoding were removed with related tests. |
Remove Taproot sighash implementation and vectors dash/src/crypto/sighash.rs, dash/tests/data/bip341_tests.json |
The Taproot cache, validation types, errors, signing-data methods, and related tests were removed from SighashCache. The legacy and SegWit implementations remain. |
Estimated code review effort: 4 (Complex) | ~45 minutes
Change: Other
Suggested reviewers: kwvg, quantumexplorer, sanket1729
Merge Risk: 
Minimal · up to c7094
-
This change removes the unused Taproot (BIP341) API, address, script and sighash support. Nothing in the supplied evidence shows a remaining dependency on the removed items. Normal CI, including a workspace-wide test build, should confirm it before merge.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 22.22% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 9 functions across 8 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
|
Bots are done — your move: post |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1253 +/- ##
==========================================
+ Coverage 80.49% 80.77% +0.28%
==========================================
Files 291 290 -1
Lines 77412 75716 -1696
==========================================
- Hits 62312 61159 -1153
+ Misses 15100 14557 -543
|
|
This PR has merge conflicts with the base branch. Please rebase or merge the base branch into your branch to resolve them. |
|
#400got updated |
Dash Core has no Taproot consensus rules (no
SCRIPT_VERIFY_TAPROOT/WITNESSflags insrc/script/interpreter.h), so the Taproot code inherited from rust-bitcoin is dead.Removes the
taprootmodule, BIP341 sighash, P2TR address/script helpers, the Taproot re-exports indashcore-cryptoand their tests.First half of a redo of #400 on top of current
dev; SegWit removal follows in a separate PR.🤖 Generated with Claude Code
PR Hygiene ·
c70940f/self-reviewedcrypto/src/key.rs,crypto/src/lib.rs,crypto/src/sighash.rsand 13 more) — QuantumExplorer or xdustinfaceWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.Summary by CodeRabbit