* refactor(rln): convert 32 bytes arrays to hex as uints
* fix(rln): fix Kilic's proofVerify proc to take stub validRoots
* refactor(rln): use input's length when convert to/from hex
* chore(rln): print more commitments inHex in debug logs
* chore(rln-relay): make account address optional
* fix(rln-relay): onchain test
* chore(chat2): update docs, and handle error case in chat2
* fix(rln-relay): handle registration better
* update zerokit submodule
* fix(rln): allow Buffer creation on empty arrays
* feat(rln): use verify_with_root
* fix(rln): update test to work with verify_with_root
* chore(rln-relay): disable merkle root validation
* brings back validation of the root but without invalidating the message
* adds the tracking issue
Co-authored-by: sanaz <staheri14@ku.edu.tr>
Necessary to fix errors like:
```
error: package `ethers-core v0.17.0 (https://github.com/gakonst/ethers-rs#454449b0)` cannot be built
because it requires rustc 1.62 or newer, while the currently active rustc version is 1.60.0
```
Also upgraded Alpine from `3.15` to `3.16`.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
* chore(ci): add zerokit test
* fix(ci): typo
* fix(Makefile): RLN points to zerokit, RLNKILIC points to kilic impl
* fix(ci): remove zerokit test workflow now that zerokit is default
* fix(Makefile): zerokit in ci
* fix(Makefile): do not compile kilic by default
* test(nix): add llvm to nix shell
* test(nix): clang
* fix(nix): mkShell
* fix(nix): mkShell
* fix(nix): err
* fix(nix): add binutils to macos nix shell
* fix(nix): test with musl-tools
* fix(nix): remove musl-tools
* fix(nix): add Security module
* fix(nix): gcc for linux, clang for macos
* test(Makefile): set CC to env
* Revert "test(Makefile): set CC to env"
This reverts commit fdab95f2cd0bdef916744d793ebf7005dd1d4396.
* test(nimbus-build-system): bad gcc
* fix(nix): remove optional for linux
* Revert "test(nimbus-build-system): bad gcc"
This reverts commit c6b81f8132.
* fix(nix): semicolon
Co-authored-by: G <28568419+s1fr0@users.noreply.github.com>
* adds rln identifier to the RateLimitProof
* enables rln-relay compilation for wakunode2
* unifies the two RateLimitProof types
* a minor update
Co-authored-by: G <28568419+s1fr0@users.noreply.github.com>
If we pull it explicitly we affect variables like `CC_FOR_TARGET` which
can break builds on MacOS due to need for `clang` use.
Depends on: https://github.com/status-im/nimbus-build-system/pull/51
Signed-off-by: Jakub Sokołowski <jakub@status.im>
* feat(rln-relay): metrics
* fix(rln-relay): invalid token
* fix(rln-relay): return outside time
* style(rln-relay): multiline proc def
* fix(rln-relay): oserror
* fix(rln-relay): Exception should not be raised
* Revert "fix(rln-relay): oserror"
This reverts commit edcf39c0088ca526ca50256d856eee20d87a3c37.
* Revert "fix(rln-relay): Exception should not be raised"
This reverts commit c8d09b055314a83bb4a94900a47e899773cb47df.
* fix(rln-relay): revert exception removal
* feat(rln-relay): granular tracking
* fix(rln-relay): observe only on histogram, convert mount to hist
* chore(rln-relay): add additional metrics
* fix(rln-relay): missing import
* fix(rln-relay): template should expand only when times is defined
* fix(rln-relay): follow prometheus naming style
* fix(rln-relay): explicitly assert that the root window size should be less than 10
* fix(rln-relay): outstanding issues with infinite labels, minor refactor
* fix(rln-relay): typo
* fix(rln-relay): screaming case to pascal case
* fix(rln-relay): typos
* fix(rln-relay): imports
* fix(rln-relay): remove dependence on times, make durations as gauges
* fix(rln-relay): import order
This is necessary for Nix builds because the sandbox there
does not contain `.git` directory or `git` command.
Also the quotes are pointless.
Signed-off-by: Jakub Sokołowski <jakub@status.im>