Change signature scheme to Poseidon2#15
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades the signature scheme from Winternitz encoding with SHA-3/SHAKE (2^18 lifetime) to Target Sum encoding with Poseidon2 hash (2^32 lifetime), significantly extending the key lifetime and switching to a ZK-friendly hash function.
- Updated signature scheme implementation to use
SIGTopLevelTargetSumLifetime32Dim64Base8 - Extended lifetime from 262,144 epochs to 4,294,967,296 epochs
- Bumped package version from 0.1.0 to 0.2.0
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| crates/c_hash_sig/src/lib.rs | Updated import and type alias to new Poseidon2-based Target Sum signature scheme; updated test to verify new 2^32 lifetime |
| crates/c_hash_sig/README.md | Replaced Winternitz scheme documentation with comprehensive Target Sum encoding parameters including hash function, dimensions, and lifetime details |
| crates/c_hash_sig/Cargo.toml | Bumped version from 0.1.0 to 0.2.0 to reflect the breaking API change |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6956f74 to
5fb5942
Compare
d990f86 to
8424a08
Compare
turuslan
approved these changes
Dec 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signature Scheme Upgrade: