Skip to content
Draft
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
6b7f3cf
Added file structure for Schnorr signature module.
damrobi Nov 3, 2025
d6f792e
Added to/from bytes for SchnorrSignature and started adding tests.
damrobi Nov 4, 2025
de3a90f
Moved test out of proptest.
damrobi Nov 4, 2025
469787c
Added more test and helper function to convert msg to base field.
damrobi Nov 4, 2025
c3e3ee3
applied clippy.
damrobi Nov 4, 2025
4827d96
Cargo.lock change.
damrobi Nov 5, 2025
979bb30
Update msg to base field conversion.
damrobi Nov 5, 2025
5c20d3e
Add to and from bytes for SchnorrSignature.
damrobi Nov 5, 2025
54c3d6d
Removed prototype implementation of schnorr signature and started new…
damrobi Nov 6, 2025
20f29aa
Added generate function for Schnorr signature.
damrobi Nov 6, 2025
8bb1976
Added conversion from sk to vk for use in signature.
damrobi Nov 6, 2025
4c8409f
Added helper function for converting a message to jubjub base field.
damrobi Nov 6, 2025
ba45d31
Added sign function for SchnorrSigningKey and necessary helper functi…
damrobi Nov 6, 2025
def6d05
Added test function for get_coordinates and fix the sign function.
damrobi Nov 6, 2025
a5931d7
Added verification function and tests to signature.
damrobi Nov 6, 2025
bf1c812
Removed unused dependency.
damrobi Nov 6, 2025
ae1b4a5
Added DST to signature and removed unwraps.
damrobi Nov 7, 2025
c8c5556
Added conversion function for scalar from BLS12 to Jubjub.
damrobi Nov 7, 2025
a7ed87e
Added wip to and from bytes for Schnorr signing key.
damrobi Nov 7, 2025
56fba1e
Added comments and derive for main structs.
damrobi Nov 7, 2025
029be7a
Added eval_dense_mapping function to signature.
damrobi Nov 7, 2025
78dedef
Took comment into account and started to add signature comment descri…
damrobi Nov 10, 2025
89786bf
Added description for Schnorr sign and verify.
damrobi Nov 11, 2025
64d50e1
Added to and from bytes for verification key and signature.
damrobi Nov 11, 2025
9bfac40
Changing the variables name and the dependency depending on the futur…
damrobi Nov 12, 2025
ab19eef
Added utils module for utility functions.
damrobi Nov 12, 2025
9f912ba
Small modifications based on JP feedback.
damrobi Nov 12, 2025
1080152
Modifications according to reviews.
damrobi Nov 13, 2025
9ec3f5d
Finished changing variables name.
damrobi Nov 13, 2025
0c97400
Added crates for jubjub and poseidon to try to replace midnight while…
damrobi Nov 14, 2025
3ddf71f
Change to dusk jubjub dependency.
damrobi Nov 14, 2025
23aa825
Modify last variable names and removed evaluate_dense_mapping functio…
damrobi Nov 18, 2025
cf1b5dc
fmt and clippy.
damrobi Nov 18, 2025
40c68d6
Correction on variable names and started adding bench for schnorr_sig…
damrobi Nov 19, 2025
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
158 changes: 156 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions mithril-stm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,30 @@ rug-backend = ["rug/default"]
num-integer-backend = ["num-bigint", "num-rational", "num-traits"]
benchmark-internals = [] # For benchmarking multi_sig
future_proof_system = [] # For activating future proof systems
future_snark = [
"ff",
"sha2",
"group",
"num-traits",
"dusk-poseidon",
"dusk-jubjub",
] # For activating snark features

[dependencies]
anyhow = { workspace = true }
blake2 = "0.10.6"
# Enforce blst portable feature for runtime detection of Intel ADX instruction set.
blst = { version = "0.3.16", features = ["portable"] }
digest = { workspace = true }
dusk-jubjub = { version = "0.15.1", optional = true }
dusk-poseidon = { version = "0.41.0", optional = true }
ff = { version = "0.13.1", optional = true }
group = { version = "0.13.0", optional = true }
num-traits = { version = "0.2.19", optional = true }
rand_core = { workspace = true }
rayon = { workspace = true }
serde = { workspace = true }
sha2 = { version = "0.10.9", optional = true }
thiserror = { workspace = true }

[target.'cfg(any(target_family = "wasm", target_env = "musl", windows))'.dependencies]
Expand Down
2 changes: 2 additions & 0 deletions mithril-stm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ mod key_registration;
mod merkle_tree;
mod parameters;
mod participant;
#[cfg(feature = "future_snark")]
mod schnorr_signature;
mod single_signature;

pub use aggregate_signature::{
Expand Down
Loading
Loading