Skip to content

Add security improvements#23

Open
rcmstark wants to merge 1 commit intomasterfrom
refactor/security
Open

Add security improvements#23
rcmstark wants to merge 1 commit intomasterfrom
refactor/security

Conversation

@rcmstark
Copy link
Copy Markdown
Member

Summary

  • Port all security fixes from Python reference implementation
  • RFC 6979 deterministic nonces, Low-S normalization, public key on-curve validation, hash truncation, Montgomery ladder, Fermat's little theorem, Shamir's trick, Tonelli-Shanks, fromJacobian guard
  • 73 tests across 10 separate test files matching Python structure
  • Benchmark class added
  • README updated with security section and benchmark numbers

Test plan

  • All 73 tests passing (./gradlew test)
  • Benchmark: sign 2.9ms, verify 1.8ms
  • Security audit: all 9 checks pass

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant