* feat(ci): cross-compile release assets, cache deps
chore(ci): add caching to regular tests
* fix(ci): include cross only in ci env, add note about release assets
* chore: fix Makefile pre-build
* chore: add Makefile command to install depenedncy cargo-make
* chore: update all READMEs with instructions to install dependencies, build and test
* chore: add target to fetch all submodules
Since profile info specified inside workspace members `Cargo.toml`'s
is ignored by Cargo, this replaces the place to specify these details
for the workspace-level `Cargo.toml`.
NOTE that `panic` and `rpath` aren't supported with the Overwritting
feature. Therefore, the only required thing (if considered necessary) is
to create a new profile which also enables these things.
Resolves: #93
* test: move tests for rln, multiplier and private-settlements to tests folder
* test: fix rln test for poseiden tree
* test: move tests for rln-wasn to standalone tests folder
* test: move tests for semaphore and utils to standalone tests folder
* chore: cargo fmt
* test: rename test files
* test: move tests out from rln/src/public to test folder
* test: fix rln tests, move tests accessign private fields back to relevant source file
* chor: run cargo fmt
* test: move all semaphore tests to tests folder
* chore: cargo fmt
Added macros to do the following:
read the input passed to the FFI API;
cast it to a byte sequence;
pass the byte sequence to the corresponding public function;
cast the output of the public function to Buffer(if any) and write it into the FFI caller ´output_buffer` variable;
erase memory from any temporarily allocated data structure;
return true if everything went fine, false otherwise.
* feat(rln): add API to recover id_secret when a user is slashed
* feat(rln): add RLN API for recovering id_secret
* feat(rln): add recover_id_secret FFI API; update public API docs
* fix(rln): address reviewers' comments
* fix(rln): removing ; for clippy
* feat(rln): expand documentation with minimal public API usage example
* refactor(rln): ease RLN interaction with new APIs
* feat(rln): expand API docs
* fix(rln): disable doctest for rln
* refactor(zerokit): split test workflows per module
* refactor(ci): separate clippy per module
* fix(ci): continue with next module lint check, even if previous fails
* refactor: enable tests on linux/macos
* fix(rln-wasm): make cargo make build work on macOS and linux (#77)
* fix(ci): fix workflow
* fix(ci): add name to workflows
* refactor(zerokit): split test workflows per module
* refactor(ci): separate clippy per module
* fix(ci): continue with next module lint check, even if previous fails
* refactor: enable tests on linux/macos
* fix(ci): fix workflow
* fix(ci): add name to workflows
* fix(ci): enable lint tests only for ubuntu
* fix(ci): exclude rln-wasm since it has its own step now
* fix(ci): use stable toolchain
* fix(ci): paths for release notes
* fix(ci): release path
* test(ci): check the tree for filepaths
* test(ci): check the tree for filepaths
* test(ci): tighten name and release assets
* test(ci): auto generated release notes
* fix(ci): remove commit hash from asset name for determinism
* test(ci): start tag should be last release
* feat(rln): publish rln artifacts on push to master
* test(ci): check if artifacts are built on push to temp branch
* fix(ci): run tests only on changes to src
* fix(ci): add paths-ignore to prs
* fix(ci): make paths more explicit
* fix(ci): make publish workflow run
* fix(ci): revert back to master ref
* fix(ci): add os and sha to artifact name
* test(ci): trigger publish
* feat(ci): tar the artifacts
* test(ci): split ci and publish
* test(ci): only on master runs
* feat(ci): replace with nightly releaser
* chore(ci): extra newlines
* fix(ci): Spelling
Co-authored-by: G. <28568419+s1fr0@users.noreply.github.com>
* feat(ci): build and publish rln wasm
Co-authored-by: G. <28568419+s1fr0@users.noreply.github.com>
* fix(rln): throw if attempting to insert out of bounds
* chore(rln): better error msg
* fix(merkle-tree): make it mimic OptimalMerkleTree impl
* chore(rln): return result as is
* feat(rln): ability to set leaves from a given index
* style(rln): fmt
* fix(rln): bubble the error
* revert: "fix(rln): bubble the error"
This reverts commit 40265082ba.
* fix(rln): replace ark::std::Zero with default
* fix(rln): ordering of ffi api
* fix(rln): use PoseidonHash::default_leaf
* chore(rln): add ffi test for batching
* docs(rln): add entry to changelog
* fix(rln): address reviews
* fix(changelog): fmt
* fix(rln): safe conversion
* fix(rln): reset tree with init func, add comments
* chore(rln): add comment about init_tree_with_leaves
* fix(rln): comment