mirror of
https://github.com/vacp2p/zerokit.git
synced 2026-01-08 22:18:01 -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>
37 lines
757 B
TOML
37 lines
757 B
TOML
[tasks.build]
|
|
clear = true
|
|
dependencies = ["pack_build", "pack_rename", "pack_resize"]
|
|
|
|
[tasks.pack_build]
|
|
command = "wasm-pack"
|
|
args = ["build", "--release", "--target", "web", "--scope", "waku"]
|
|
|
|
[tasks.pack_rename]
|
|
script = "sed -i.bak 's/rln-wasm-utils/zerokit-rln-wasm-utils/g' pkg/package.json && rm pkg/package.json.bak"
|
|
|
|
[tasks.pack_resize]
|
|
command = "wasm-opt"
|
|
args = [
|
|
"pkg/rln_wasm_utils_bg.wasm",
|
|
"-Oz",
|
|
"--strip-debug",
|
|
"--strip-dwarf",
|
|
"--remove-unused-module-elements",
|
|
"--vacuum",
|
|
"-o",
|
|
"pkg/rln_wasm_utils_bg.wasm",
|
|
]
|
|
|
|
[tasks.test]
|
|
command = "wasm-pack"
|
|
args = [
|
|
"test",
|
|
"--release",
|
|
"--node",
|
|
"--target",
|
|
"wasm32-unknown-unknown",
|
|
"--",
|
|
"--nocapture",
|
|
]
|
|
dependencies = ["build"]
|