Skip to content

Conversation

@jkyberneees
Copy link
Contributor

@jkyberneees jkyberneees commented Dec 31, 2025

  • Adding CLI tool
  • Fixing SedDe
  • Add GitHub Actions

jkyberneees and others added 20 commits December 30, 2025 16:52
Fixed critical bugs in deserializeCiphertext functions where Int32Array views were being created from sliced byte arrays, causing misalignment and data corruption. Instead of using slice().buffer which creates a new ArrayBuffer, now properly pass the buffer reference with correct byte offset.

Changes:
- src/kem/index.ts: Fixed deserialization of SLSS and TDD ciphertext components to use proper byte offset arithmetic
- src/problems/slss/index.ts: Fixed slssDeserializePublicKey to use Int32Array(buffer, offset, length) constructor
- src/problems/tdd/index.ts: Fixed tddDeserializePublicKey to use Int32Array(buffer, offset, length) constructor
- src/sign/index.ts: Completely rewrote signature functions to match simplified Fiat-Shamir scheme with new MOSAICSignature interface (commitment, challenge, response)

This fixes serialization/deserialization round-trip fidelity which is critical for cross-implementation compatibility with the Go implementation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
@jkyberneees jkyberneees merged commit e4ce2af into main Dec 31, 2025
6 checks passed
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