Skip to content

feat(key-protocol/nssa)!: PQ resistance primitives for vsk/vpk for shared key agreement#474

Open
jonesmarvin8 wants to merge 9 commits into
mainfrom
marvin/pq-privacy-encryption
Open

feat(key-protocol/nssa)!: PQ resistance primitives for vsk/vpk for shared key agreement#474
jonesmarvin8 wants to merge 9 commits into
mainfrom
marvin/pq-privacy-encryption

Conversation

@jonesmarvin8
Copy link
Copy Markdown
Collaborator

@jonesmarvin8 jonesmarvin8 commented May 12, 2026

🎯 Purpose

Shifts LEE to a PQ secure scheme, Kyber-768, for the key agreement. This requires changing the viewing keys from secp256k1 related data structures to byte arrays that can be used to produce ML-KEM-768 encapsulation and decapsulation keys. Updated key protocol for viewing key changes.

⚙️ Approach

  • Update key protocol to change vsk and vpk generation.
  • Update shared key generation logic to use Kyber-768.
  • Update specs.md portions related to key agreement (only these sections are included).

🧪 How to Test

Refactored to replace ECIES with Kyber. As such, all pre-existing tests should still work. Additionally, added kem_to_chacha20_round_trip to demonstrate encapsulation and decapsulation does not distort account data.

🔗 Dependencies

None.

🔜 Future Work

None.

📋 PR Completion Checklist

  • Complete PR description
  • Implement the core functionality
  • Add/update tests
  • Add/update documentation and inline comments

@jonesmarvin8 jonesmarvin8 changed the title initialize pq encryption changes feat(key-protocol/nssa)!: PQ resistance primitives for vsk/vpk for shared key agreement May 18, 2026
jonesmarvin8 and others added 6 commits May 19, 2026 17:52
Binary artifact conflicts resolved by keeping branch versions (compiled
against the PQ codebase). All source conflicts auto-merged cleanly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jonesmarvin8 jonesmarvin8 marked this pull request as ready for review May 21, 2026 23:24
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