Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

pubkey/eth-crypto
master @ 028f25f
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Cryptographic Issue: 1 prior fix. Scrutinize any change in this area.
src/create-identity.js: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Information Disclosure: Debug logging of newly created identities and private keys to the console exposes highly sensitive cryptographic material to log aggregators and terminal history. Developers should ensure no debugging statements print raw private keys.
Cryptographic Issue: Allowing arbitrary length inputs to the sign function instead of enforcing 32-byte hash structures can lead to cryptographic weaknesses or unexpected signature outputs. Strict input validation of payload lengths is necessary before delegation to the underlying elliptic curve signing functions.