Skip to content

fix: reject malformed ed25519 private keys in PrivateKeyFromBase58#399

Open
tanmay4l wants to merge 2 commits intosolana-foundation:mainfrom
tanmay4l:main
Open

fix: reject malformed ed25519 private keys in PrivateKeyFromBase58#399
tanmay4l wants to merge 2 commits intosolana-foundation:mainfrom
tanmay4l:main

Conversation

@tanmay4l
Copy link
Copy Markdown

@tanmay4l tanmay4l commented Apr 16, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@sonicfromnewyoke sonicfromnewyoke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i really like it, thank you 🙏
old validation was essentially decorative - it rejected the narrow case of corrupted public keys that also happened to be off-curve, but silently accepted the much larger class of inconsistent keys
so, i believe this MR is a real step towards more secure apps

Comment thread keys.go
@tanmay4l tanmay4l force-pushed the main branch 4 times, most recently from e4e3304 to c7cb94e Compare April 16, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants