mirror of
https://github.com/vacp2p/zerokit.git
synced 2026-01-10 06:58:03 -05:00
# Changes - Unified the `RLN` struct and core protocol types across public, FFI, and WASM so everything works consistently. - Fully refactored `protocol.rs` and `public.rs` to clean up the API surface and make the flow easier to work with. - Added (de)serialization for `RLN_Proof` and `RLN_ProofValues`, and matched all C, Nim, WASM, and Node.js examples. - Aligned FFI and WASM behavior, added missing APIs, and standardized how witness are created and passed around. - Reworked the error types, added clearer verification messages, and simplified the overall error structure. - Updated variable names, README, Rust docs, and examples across the repo, updated outdated RLN RFC link. - Refactored `rln-cli` to use the new public API, removed serialize-based cli example, and dropped the `eyre` crate. - Bumped dependencies, fixed CI, fixed `+atomic` flags for latest nightly Rust and added `Clippy.toml` for better fmt. - Added a `prelude.rs` file for easier use, cleaned up public access for types and types import across zerokit modules. - Separated keygen, proof handling, slashing logic, and witness into protocol folder.
46 lines
1.0 KiB
TOML
46 lines
1.0 KiB
TOML
[package]
|
|
name = "zerokit_utils"
|
|
version = "0.7.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
description = "Various utilities for Zerokit"
|
|
documentation = "https://github.com/vacp2p/zerokit"
|
|
homepage = "https://vac.dev"
|
|
repository = "https://github.com/vacp2p/zerokit"
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[dependencies]
|
|
ark-ff = { version = "0.5.0", default-features = false }
|
|
num-bigint = { version = "0.4.6", default-features = false }
|
|
pmtree = { package = "vacp2p_pmtree", version = "2.0.3", optional = true }
|
|
sled = "0.34.7"
|
|
serde_json = "1.0.145"
|
|
rayon = "1.11.0"
|
|
thiserror = "2.0"
|
|
|
|
[dev-dependencies]
|
|
hex = "0.4.3"
|
|
hex-literal = "1.1.0"
|
|
ark-bn254 = { version = "0.5.0", features = ["std"] }
|
|
num-traits = "0.2.19"
|
|
tiny-keccak = { version = "2.0.2", features = ["keccak"] }
|
|
criterion = { version = "0.8.0", features = ["html_reports"] }
|
|
|
|
[features]
|
|
default = []
|
|
parallel = ["ark-ff/parallel"]
|
|
pmtree-ft = ["pmtree"]
|
|
|
|
[[bench]]
|
|
name = "merkle_tree_benchmark"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "poseidon_benchmark"
|
|
harness = false
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|