refactor: backport rust-bitcoin#5680, drop unconstructed Ed25519 error variants, reap base58 module, tidy base64 dep - #1053
Conversation
`git diff --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space`
`git diff --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space`
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: dashpay/rust-dashcore/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (27)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds key and sighash APIs to dashcore-crypto and updates dash to use them. It also updates Base58 and Base64 integrations, and adds key-wallet derivation-path constructors for payment, identity, asset-lock, and DIP-13 application paths. ChangesCrypto API extraction and integration
Wallet derivation paths
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~60 minutes Change: Refactor Suggested reviewers: Merge Risk: ⚪ Minimal · up to This refactor moves key, sighash, and Base58 handling into the shared crypto crate, updates the Base64 dependency, and relocates existing wallet derivation-path helpers without changing the paths they produce. No behavior regressions were identified, and the change looks ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 45.38% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 119 functions across 23 files. (3 skipped: 3 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #1053 +/- ##
==========================================
+ Coverage 77.01% 77.45% +0.44%
==========================================
Files 320 317 -3
Lines 81519 80645 -874
==========================================
- Hits 62778 62464 -314
+ Misses 18741 18181 -560
|
`git diff --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space`
`git diff --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space`
`git diff --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space`
`git diff --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space`
|
Bots are done — your move: post |
|
/self-reviewed |
|
Ready for review — needs QuantumExplorer or ZocoLini or xdustinface. |
Additional Information
Depends on feat: abstract BLS backend types behind newtypes, isolate to
dashcore-cryptocrate, switch todash-pkcfromblsfulfork #1036Based on Move ecdsa and parts of key and sighash to crypto crate rust-bitcoin/rust-bitcoin#5680
As rust-dashcore has substantially diverged from rust-bitcoin, direct backports prove to be a bit challenging without propagating more API changes than strictly needed to arrive at a similar enough shape. This pull request deliberately reduces the diff set to mostly achieve the limited goal of holstering up secp256k1 specifics from the primary
dashcorecrate.PR Hygiene ·
a03df50crypto/Cargo.toml,crypto/src/ecdsa.rs,crypto/src/key.rsand 22 more) — QuantumExplorer or ZocoLini or xdustinfacekey-wallet(key-wallet/Cargo.toml,key-wallet/src/bip32.rs,key-wallet/src/dip9.rsand 1 more) — QuantumExplorer or ZocoLini or xdustinfaceWhen every box is checked the
PR Hygienecheck passes and this can merge.