Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/build-helper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ version = "0.1.0"
edition = "2021"

[dependencies]
cbindgen = "0.26.0"
cbindgen = "0.29.2"
7 changes: 4 additions & 3 deletions crates/c_hash_sig/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[package]
name = "c_hash_sig_crust"
version = "0.1.0"
version = "0.2.0"
edition = "2021"

[lib]
name = "c_hash_sig_crust"
crate-type = ["cdylib", "staticlib"]

[dependencies]
hashsig = { git = "https://github.com/b-wagn/hash-sig" }
cpp = { path = "../cpp" }
leansig = { git = "https://github.com/leanEthereum/leanSig", rev = "1f8763951c55e5575c9bb9827cf6031005a4bee6" }
rand = "0.9"
bincode = { version = "2.0.1", features = ["serde"] }
serde_json = "1.0"

[build-dependencies]
build-helper = { path = "../build-helper" }
12 changes: 9 additions & 3 deletions crates/c_hash_sig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,15 @@ All messages must be **exactly 32 bytes**. To sign longer messages, first use a
## Scheme Parameters

Current implementation uses:
- **Scheme**: Generalized XMSS (Winternitz encoding, w=4)
- **Hash function**: SHA-3 (SHAKE)
- **Lifetime**: 2^18 epochs (262,144 epochs)
- **Scheme**: Generalized XMSS (Target Sum encoding)
- **Scheme alias**: `SIGTopLevelTargetSumLifetime32Dim64Base8`
- **Hash function**: Poseidon2 (ZK-friendly)
- **Encoding**: Target Sum
- **Dimension**: 64
- **Base**: 8
- **Final Layer**: 77
- **Target Sum**: 375
- **Lifetime**: 2^32 epochs (4,294,967,296 epochs)
- **Message length**: 32 bytes

## Project Statistics
Expand Down
Loading