Skip to content

chore: remove Default impl for WalletSeed#804

Merged
gilescope merged 4 commits into
mainfrom
chore/remove-walletseed-default
Feb 27, 2026
Merged

chore: remove Default impl for WalletSeed#804
gilescope merged 4 commits into
mainfrom
chore/remove-walletseed-default

Conversation

@justinfrevert

@justinfrevert justinfrevert commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Overview

Remove the all-zero Default implementation for WalletSeed. The one internal placeholder usage in RewardsInfo is replaced with an explicit initializer.

🗹 TODO before merging

  • Ready

📌 Submission Checklist

  • Changes are backward-compatible (or flagged if breaking)
  • Pull request description explains why the change is needed
  • Self-reviewed the diff
  • I have included a change file, or skipped for this reason:
  • If the changes introduce a new feature, I have bumped the node minor version
  • Update documentation (if relevant)
  • Updated AGENTS.md if build commands, architecture, or workflows changed
  • No new todos introduced

🧪 Testing Evidence

Please describe any additional testing aside from CI:

  • Additional tests are provided (if possible)

🔱 Fork Strategy

  • Node Runtime Update
  • Node Client Update
  • Other:
  • N/A

Links

https://shielded.atlassian.net/browse/PM-22087

Remove the all-zero Default implementation for WalletSeed. The one
internal placeholder usage in RewardsInfo is replaced with an explicit
initializer.
@github-actions

github-actions Bot commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

kics-logo

KICS version: v2.1.16

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 99
LOW LOW 12
INFO INFO 83
TRACE TRACE 0
TOTAL TOTAL 194
Metric Values
Files scanned placeholder 30
Files parsed placeholder 30
Files failed to scan placeholder 0
Total executed queries placeholder 73
Queries failed to execute placeholder 0
Execution time placeholder 9

@justinfrevert justinfrevert marked this pull request as ready for review February 27, 2026 03:24
@justinfrevert justinfrevert requested a review from a team as a code owner February 27, 2026 03:24
@gilescope gilescope added this pull request to the merge queue Feb 27, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 27, 2026
@gilescope gilescope added this pull request to the merge queue Feb 27, 2026
Merged via the queue into main with commit 346fd7d Feb 27, 2026
32 of 35 checks passed
@gilescope gilescope deleted the chore/remove-walletseed-default branch February 27, 2026 22:49
m2ux added a commit that referenced this pull request Mar 27, 2026
Audit finding A2-D (Least Authority, Feb 2026): WalletSeed must not
implement Default. The previous impl returned Medium([0; 32]) — an
all-zero seed producing predictable wallet keys. Removed in PR #804.

The compile_fail doctest ensures WalletSeed::default() does not compile,
preventing re-introduction of the vulnerability.

JIRA: https://shielded.atlassian.net/browse/PM-22024
Made-with: Cursor
m2ux added a commit that referenced this pull request Apr 17, 2026
Audit finding A2-D (Least Authority, Feb 2026): WalletSeed must not
implement Default. The previous impl returned Medium([0; 32]) — an
all-zero seed producing predictable wallet keys. Removed in PR #804.

The compile_fail doctest ensures WalletSeed::default() does not compile,
preventing re-introduction of the vulnerability.

JIRA: https://shielded.atlassian.net/browse/PM-22024
Made-with: Cursor
Signed-off-by: Mike Clay <mike.clay@shielded.io>
github-merge-queue Bot pushed a commit that referenced this pull request Apr 17, 2026
* chore: add change file for PM-22024 wallet seed audit verification

Signed-off-by: Mike Clay <mike.clay@shielded.io>

* chore: add PR link to change file

Signed-off-by: Mike Clay <mike.clay@shielded.io>

* test: add compile_fail regression test for WalletSeed Default removal

Audit finding A2-D (Least Authority, Feb 2026): WalletSeed must not
implement Default. The previous impl returned Medium([0; 32]) — an
all-zero seed producing predictable wallet keys. Removed in PR #804.

The compile_fail doctest ensures WalletSeed::default() does not compile,
preventing re-introduction of the vulnerability.

JIRA: https://shielded.atlassian.net/browse/PM-22024
Made-with: Cursor
Signed-off-by: Mike Clay <mike.clay@shielded.io>

* ci: retrigger CI after transient Docker Hub auth failure

Made-with: Cursor
Signed-off-by: Mike Clay <mike.clay@shielded.io>

* fix: add GitHub issue reference to changes file

Signed-off-by: Mike Clay <mike.clay@shielded.io>

---------

Signed-off-by: Mike Clay <mike.clay@shielded.io>
m2ux added a commit that referenced this pull request Apr 23, 2026
m2ux added a commit that referenced this pull request Apr 23, 2026
* chore: add change file for PM-22024 wallet seed audit verification


* chore: add PR link to change file


* test: add compile_fail regression test for WalletSeed Default removal

Audit finding A2-D (Least Authority, Feb 2026): WalletSeed must not
implement Default. The previous impl returned Medium([0; 32]) — an
all-zero seed producing predictable wallet keys. Removed in PR #804.

The compile_fail doctest ensures WalletSeed::default() does not compile,
preventing re-introduction of the vulnerability.

JIRA: https://shielded.atlassian.net/browse/PM-22024
Made-with: Cursor

* ci: retrigger CI after transient Docker Hub auth failure

Made-with: Cursor

* fix: add GitHub issue reference to changes file


---------


Signed-off-by: Mike Clay <mike.clay@shielded.io>
m2ux added a commit that referenced this pull request Apr 23, 2026
m2ux added a commit that referenced this pull request Apr 23, 2026
* chore: add change file for PM-22024 wallet seed audit verification


* chore: add PR link to change file


* test: add compile_fail regression test for WalletSeed Default removal

Audit finding A2-D (Least Authority, Feb 2026): WalletSeed must not
implement Default. The previous impl returned Medium([0; 32]) — an
all-zero seed producing predictable wallet keys. Removed in PR #804.

The compile_fail doctest ensures WalletSeed::default() does not compile,
preventing re-introduction of the vulnerability.

JIRA: https://shielded.atlassian.net/browse/PM-22024
Made-with: Cursor

* ci: retrigger CI after transient Docker Hub auth failure

Made-with: Cursor

* fix: add GitHub issue reference to changes file


---------


Signed-off-by: Mike Clay <mike.clay@shielded.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants