Skip to content

v3.1.0

Latest

Choose a tag to compare

@seemenkina seemenkina released this 11 Nov 11:15
v3.1.0
3ede28e

Highlights

v3.1.0 adds Poseidon2 as a second hash function for RLN, next to the existing Poseidon. Nothing changes for current users: the unsuffixed API still means Poseidon, and the wire format is untouched.

What's new

  • Poseidon2 hash (utils): permutation for t = 2..4 with the HorizenLabs constant set, hashing in the Logos compression layout. Pinned by golden vectors against the Nomos and rust-poseidon-bn254-pure implementations. (#437)
  • Poseidon2 RLN (rln): Poseidon2Hash hasher, RLNBuilder _poseidon2 constructors, and embedded Poseidon2 circuits for single and multi message-id, depth 20. (#437)
  • FFI and WASM: ffi_rln_new_poseidon2_, ffi_poseidon2_hash_, WasmRLNPoseidon2 and poseidon2HashPair. (#437)
  • Extended Poseidon round parameters for 1 to 16 inputs, cross-checked against circomlibjs. (#433)
  • Benchmarks for both hashes across all three Merkle tree backends and proof generation. (#437)
  • Nix: a Windows x86_64 GNU cross-build of the C ABI, nix build .#rln-windows-x86_64; the flake now builds from a cold cache. (#438, #435, #445)
  • Dependency bumps across the workspace. ark-* stays on 0.5. (#441)
  • AGENTS.md: the repository policy for coding agents. (#442)

Upgrading

No code changes needed. To try Poseidon2, use RLNBuilder::stateless_poseidon2() or stateful_poseidon2(tree) and the matching tree hasher; mixing a Poseidon2 RLN with Poseidon resources yields Ok(false) on verify, never a panic.

Packages

  • crates.io: rln 3.1.0, zerokit_utils 3.1.0
  • npm: @waku/zerokit-rln-wasm, @waku/zerokit-rln-wasm-parallel, @waku/zerokit-rln-wasm-utils 3.1.0

What's Changed

  • chore(deps): bump the actions group with 3 updates by @dependabot[bot] in #431
  • chore(deps): bump docker/login-action from 4.5.2 to 4.6.0 in the actions group by @dependabot[bot] in #434
  • nix: bump release-25.11 rev to pick up fetch-cargo-vendor-util-v2, and update cargoHash for v3.0.0 by @richard-ramos in #435
  • feat: extended round parameters for PoseidonHash by @vinhtc27 in #433
  • nix: add mingw nix package by @dlipicar in #438
  • feat: poseidon2 implementation and benchmark by @vinhtc27 in #437
  • chore(deps): bump docker/login-action from 4.6.0 to 4.7.0 in the actions group by @dependabot[bot] in #443
  • chore(deps): bump docker/login-action from 4.7.0 to 4.8.0 in the actions group by @dependabot[bot] in #444
  • chore: bump deps for v3.1.0 release and wasm CI fix by @vinhtc27 in #441
  • nix: update cargoHash for the v3.1.0 Cargo.lock by @vinhtc27 in #445
  • docs: zerokit repo's policy for coding agents by @vinhtc27 in #442

New Contributors

Full Changelog: v3.0.0...v3.1.0