Skip to content

fix(key-wallet): construct root_private_key with from_secret_bytes - #1048

Merged
PastaPastaPasta merged 1 commit into
dashpay:devfrom
kwvg:bls_reduce_fix
Sep 22, 2026
Merged

PastaPastaPasta merged 1 commit into
dashpay:devfrom
kwvg:bls_reduce_fix

Conversation

@kwvg

@kwvg kwvg commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Additional Information

PR Hygiene · 896700d

  • Bots — coderabbitai ✓
  • Self-review — post /self-reviewed
  • Within your 5 open PRs
  • Build green
  • Approvals
    • key-wallet (key-wallet/src/derivation_bls_bip32.rs) — approved by ZocoLini

When every box is checked the PR Hygiene check passes and this can merge.

@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: Repository: dashpay/rust-dashcore/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: d5a7d983-f832-428f-ab46-935ba74647c1

📥 Commits

Reviewing files that changed from the base of the PR and between 859f0ac and 896700d.

📒 Files selected for processing (1)
  • key-wallet/src/derivation_bls_bip32.rs

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The test now constructs secp256k1::SecretKey with from_secret_bytes(secret) instead of from_slice(&secret). The test flow and BLS scalar reduction assertion remain unchanged.

Changes

BLS derivation test update

Layer / File(s) Summary
Secret key construction
key-wallet/src/derivation_bls_bip32.rs
The test uses the array-based from_secret_bytes constructor with the existing secret value. Its RootExtendedPrivKey setup and reduction assertion remain unchanged.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Suggested reviewers: quantumexplorer

Merge Risk: ⚪ Minimal · up to 89670

This updates a test for the newer SecretKey API without changing production behavior; the PR is mergeable.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the key-wallet change: constructing root_private_key with from_secret_bytes. This matches the pull request objective and the code change.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Bots are done — your move: post /self-reviewed.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-self-review Waiting for the author to post /self-reviewed label Sep 22, 2026
@kwvg

kwvg commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator Author

/self-reviewed

@github-actions github-actions Bot removed the waiting-self-review Waiting for the author to post /self-reviewed label Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Ready for review — needs QuantumExplorer or ZocoLini or xdustinface.
Full checklist in the description.

@github-actions github-actions Bot added the ready-for-human Bots have reported, the author has self-reviewed, and the build is green: this needs a human. label Sep 22, 2026
@codecov

codecov Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.24%. Comparing base (859f0ac) to head (896700d).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1048      +/-   ##
==========================================
+ Coverage   76.02%   77.24%   +1.21%     
==========================================
  Files         255      329      +74     
  Lines       58413    83715   +25302     
==========================================
+ Hits        44410    64664   +20254     
- Misses      14003    19051    +5048     
Flag Coverage Δ
core 78.24% <ø> (ø)
ffi 50.51% <ø> (-0.01%) ⬇️
rpc 20.00% <ø> (ø)
spv 92.13% <ø> (+<0.01%) ⬆️
wallet 80.04% <100.00%> (?)
Files with missing lines Coverage Δ
key-wallet/src/derivation_bls_bip32.rs 94.27% <100.00%> (ø)

... and 79 files with indirect coverage changes

@github-actions github-actions Bot added waiting-self-review Waiting for the author to post /self-reviewed and removed ready-for-human Bots have reported, the author has self-reviewed, and the build is green: this needs a human. labels Sep 22, 2026
@kwvg

kwvg commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator Author

/self-review

@PastaPastaPasta
PastaPastaPasta merged commit 929a651 into dashpay:dev Sep 22, 2026
45 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-self-review Waiting for the author to post /self-reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants