Skip to content

leanEthereum/leanMultisig

Repository files navigation

leanMultisig

Minimal hash-based zkVM, targeting recursion and aggregation of hash-based signatures, for a Post-Quantum Ethereum.

Documentation: PDF

Proving System

The VM design is inspired by the famous Cairo paper.

Security

123 bits of security. Johnson bound + degree 5 extension of koala-bear -> no proximity gaps conjecture. (TODO 128 bits, which requires hash digests bigger than 8 koala-bears).

Benchmarks

Machine: M4 Max 48GB (CPU only)

Benchmark Current Target
Poseidon2 (16 koala-bears) 560K Poseidon2 / s n/a
2 -> 1 Recursion 1.35 s 0.25 s
XMSS aggregation 554 XMSS / s 1000 XMSS / s

Expect incoming perf improvements.

To reproduce:

  • cargo run --release -- poseidon --log-n-perms 20
  • cargo run --release -- recursion --n 2
  • cargo run --release -- xmss --n-signatures 1350

(Small detail remaining in recursion: final (multilinear) evaluation of the guest program bytecode, there are multiple ways of handling it... TBD soon)

Proof size

WHIR intial rate = 1/4. Proof size ≈ 380 KiB. TODO: Merkle pruning + WHIR batch opening -> 256 KiB. (To go below 256 KiB -> rate 1/8 or 1/16 in the final recursion).

Credits

  • Plonky3 for its various performant crates
  • whir-p3: a Plonky3-compatible WHIR implementation
  • Whirlaway: Multilinear snark for AIR + minimal zkVM

About

Minimal zkVM, targeting XMSS aggregation and recursion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 10