mirror of
https://github.com/vacp2p/zerokit.git
synced 2026-01-09 21:58:06 -05:00
- separated all identity generation functions as separate functions, rather than RLN methods - added BE support - only for these functions so far - covered the functions with tests, as well as conversion to big endian - prepared for publication, but is actually awaiting the initial publication of the RLN module @vinhtc27, please check that everything is correct from the wasm point of view. This module does not require parallel computing, so if there are any unnecessary dependencies, builds, etc., please let me know. --------- Co-authored-by: vinhtc27 <vinhtc27@gmail.com>
36 lines
1013 B
TOML
36 lines
1013 B
TOML
[package]
|
|
name = "rln-wasm-utils"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
# TODO: remove this once we have a proper release
|
|
rln = { path = "../rln", default-features = false, features = ["stateless"] }
|
|
js-sys = "0.3.77"
|
|
wasm-bindgen = "0.2.100"
|
|
rand = "0.8.5"
|
|
|
|
# The `console_error_panic_xhook` crate provides better debugging of panics by
|
|
# logging them with `console.error`. This is great for development, but requires
|
|
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
|
|
# code size when deploying.
|
|
console_error_panic_hook = { version = "0.1.7", optional = true }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
getrandom = { version = "0.2.16", features = ["js"] }
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = "0.3.37"
|
|
web-sys = { version = "0.3.77", features = ["console"] }
|
|
ark-std = { version = "0.5.0", default-features = false }
|
|
|
|
[features]
|
|
default = ["console_error_panic_hook"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|