tyshko-rostyslav
ba8f011cc1
MVP CLI Proposal implementation: proof/verify functionality ( #168 )
...
* next feaf command
* delete leaf command
* get root command
* next feaf call
* delete leaf call
* get root call
* GetProof command
* Prove command
* Verify command
* GenerateProof command
* VerifyWithRoots command
* GetProof call
* Prove call
* Verify call
* GenerateProof call
* VerifyWithRoots call
* fmt
* redundunt
* output moved to stdout, better error msg
2023-06-05 15:24:17 +05:30
Aaryamann Challani
9dc92ec1ce
fix(ci): run benchmarks only in PRs ( #173 )
2023-05-30 12:22:06 +05:30
Aaryamann Challani
75d760c179
feat(ci): benchmark compare ( #171 )
2023-05-29 23:42:30 +05:30
Aaryamann Challani
72a3ce1770
fix(cargo.toml): bench=false ( #172 )
2023-05-29 19:44:00 +05:30
Aaryamann Challani
b841e725a0
feat(rln): pmtree benchmarks ( #169 )
...
* feat(rln): pmtree benchmarks
* style(rln): lint
2023-05-29 18:51:36 +05:30
tyshko-rostyslav
3177e3ae74
MVP CLI Proposal implementation: leaf and root interactions ( #167 )
...
* next feaf command
* delete leaf command
* get root command
* next feaf call
* delete leaf call
* get root call
* better error comment
* to stdout
* fmt
2023-05-29 18:49:18 +05:30
Aaryamann Challani
2c4de0484a
feat(utils): initialize benchmarks ( #166 )
2023-05-25 12:02:45 +05:30
tyshko-rostyslav
fcd4854037
Merkle tree operations ( #164 )
...
merkle tree operations added
2023-05-23 09:08:47 +02:00
Rahul Ghangas
d68dc1ad8e
fix: wasm tests and ci ( #165 )
...
* fix: unwrap values in test
* fix: rln-wasm tests weren't being run in ci
* chore: cargo fmt
2023-05-18 11:33:45 +05:30
tyshko-rostyslav
8c3d60ed01
RLN CLI basic ( #163 )
...
* new crate
* toml file
* lock file
* cli
* state
* commands
* main
* fmt
* reorgs
* redundunt
* fmt
2023-05-18 11:33:22 +05:30
Aaryamann Challani
c2d386cb74
feat(rln): public, ffi for atomic ops ( #162 )
2023-05-16 10:00:32 +05:30
Aaryamann Challani
8f2c9e3586
combined batch operations (insert + delete) ( #160 )
...
* fix(rln): clippy error
* feat: batch ops in ZerokitMerkleTree
* chore: bump pmtree
* fix: upstream root calc
2023-05-15 07:11:43 +05:30
Aaryamann Challani
584c2cf4c0
fix(rln): clippy error ( #159 )
2023-05-06 18:30:58 +05:30
Aaryamann Challani
2c4b399126
feat(rln): ability to pass rln tree config in ffi ( #150 )
...
* feat(rln): pass config in rln ffi
* fix: for rln-wasm
* fix: ffi tests
* fix: clippy
* fix: test cursor
2023-05-05 15:15:33 +05:30
RichΛrd
c4b699ddff
fix: `len().to_le_bytes().to_vec()` contains 4 bytes on 32b and should contain 8 ( #154 )
2023-05-04 15:23:53 +05:30
Richard Ramos
33d3732922
fix: u64 to usize conversion
...
usize::from_le_bytes will take an array of length 2, 4 or 8 bytes depending on the target pointer size. Since wasm uses 32b, there was a failure while reading serialized values due to the number of bytes read being incorrect. I also update version rln-wasm to 0.0.9 (npm package needs to be updated to include this fix)
2023-05-03 09:53:11 -04:00
Aaryamann Challani
654c77dcf6
feat: make pmtree default ( #149 )
2023-05-02 13:31:26 +05:30
Richard Ramos
783f875d3b
feat: expose `hash`, `poseidon_hash` and `delete_leaf`
2023-05-01 11:21:42 -04:00
Aaryamann Challani
fd7d7d9318
Integrate pmtree into rln ( #147 )
...
* feat: integrate pmtree with zerokit
* fix: tests
2023-04-28 10:02:21 +05:30
tyshko-rostyslav
4f98fd8028
chore(rln): bring hash functions under a single module ( #146 )
2023-04-20 16:24:29 +05:30
tyshko-rostyslav
9931e901e5
most changes ( #145 )
...
Co-authored-by: tyshkor <tyshko1@gmail.com>
2023-04-13 06:45:12 +05:30
Aaryamann Challani
0fb7e0bbcb
feat: abstract shared behaviour into ZerokitMerkleTree ( #142 )
...
* feat: abstract shared behaviour into ZerokitMerkleTree
* fix: tests
2023-04-11 16:46:13 +05:30
tyshko-rostyslav
672287b77b
call_bool_method_with_error_msg ( #144 )
...
Co-authored-by: tyshkor <tyshko1@gmail.com>
2023-04-10 19:45:16 +05:30
Aaryamann Challani
2e868d6cbf
fix(ci): force draft=false for nightly releases ( #143 )
2023-03-31 18:15:37 +05:30
tyshko-rostyslav
39bea35a6d
Macro to call functions with an error message with output ( #141 )
...
Another variation of our call, this time when output is used
2023-03-31 14:44:04 +02:00
tyshko-rostyslav
6ff4eeb237
Macro to call functions with an error message ( #140 )
...
abstract out calls
---------
Co-authored-by: tyshkor <tyshko1@gmail.com>
2023-03-29 15:16:36 +02:00
Aaryamann Challani
1f983bb232
fix(rln): move std::path to cfg_if block ( #138 )
2023-03-24 09:31:01 +05:30
tyshko-rostyslav
13a2c61355
add wasm-strip to reduce size even more ( #137 )
...
* added wasm-strip fixed docs
* requested change
* fix installdeps
* fix ubuntu
* fix macos
---------
Co-authored-by: tyshkor <tyshko1@gmail.com>
2023-03-24 09:30:48 +05:30
tyshko-rostyslav
2bbb710e83
add Cargo.lock to the repo ( #136 )
...
add Cargo.lock to the repo
2023-03-23 07:45:36 +01:00
tyshko-rostyslav
8cd4baba8a
leave our fork of `ark-circom` ( #132 )
...
* leave our fork of `ark-circom`
---------
Co-authored-by: tyshkor <tyshko1@gmail.com>
2023-03-22 07:01:24 +01:00
Aaryamann Challani
9045e31006
fix ci tag ( #133 )
...
* fix(ci): release tag
* fix: use 0.2.1
2023-03-20 17:47:46 +05:30
Aaryamann Challani
9e44bb64dc
fix(semaphore): use fixed rev ( #130 )
2023-03-20 14:06:25 +05:30
Aaryamann Challani
bb7dfb80ee
feat(ci): cross-compile release assets, cache deps ( #128 )
...
* 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
2023-03-14 17:44:06 +05:30
Aaryamann Challani
c319f32a1e
feat(rln): package rln w/ resources into a static lib ( #118 )
...
* feat(rln): package resources into lib
* fix(rln): use Path
* fix(rln): fmt
* fix(rln): trailing slash
2023-03-07 18:15:06 +05:30
tyshko-rostyslav
bf2aa16a71
chore(rln): ensure all dependencies have fixed revision ( #127 )
2023-03-07 09:11:08 +05:30
tyshko-rostyslav
c423bdea61
chore(rln): update pmtree implementation ( #125 )
...
* most changes
* fmt
* hide tests back under feature
* grooming
* changed `SledConfig`
* requested change: rm `dbpath`
---------
Co-authored-by: tyshkor <tyshko1@gmail.com>
2023-03-03 10:33:39 +05:30
Carlos Pérez
5eb98d4b33
change: Replace `u64` for `usize` for length vars ( #94 )
...
* change: Replace `u64` for `usize` for length vars
Resolves : #39
* fix(rln): usize instead of u64 in tests
* fix(rln): linter
* fix: outlier u64 usage
* fix(rln|rln-wasm): serde of usize types
---------
Co-authored-by: Aaryamann Challani <43716372+rymnc@users.noreply.github.com>
2023-03-02 19:15:58 +05:30
Aaryamann Challani
b698153e28
fix(ci): nightly release ( #124 )
2023-03-02 07:41:49 +05:30
Aaryamann Challani
a6c8090c93
feat(v0.2): changelog ( #122 )
2023-02-28 16:25:18 +05:30
tyshko-rostyslav
7ee7675d52
Redundunt dependencies ( #111 )
...
* most changes
* delete unused deps + update ark-circom
* fix build
* revert
* default deatures
* return
* кумуке 2
* try
* rm
---------
Co-authored-by: tyshkor <tyshko1@gmail.com>
2023-02-28 00:19:47 +05:30
Aaryamann Challani
062055dc5e
fix(license): add licensing info to cargo.toml ( #121 )
2023-02-27 11:47:55 +05:30
tyshko-rostyslav
55b00fd653
Code quality ( #114 )
...
* to color_eyre::Result 1st part
* tests and seconds batch
* third batch
* rln fixes + multiplier
* rln-wasm, assert rln, multiplier
* io to color_eyre
* fmt + clippy
* fix lint
* temporary fix of `ark-circom`
* fix ci after merge
* fmt
* fix rln tests
* minor
* fix tests
* imports
* requested change
* report + commented line + requested change
* requested changes
* fix build
* lint fixes
* better comments
---------
Co-authored-by: tyshkor <tyshko1@gmail.com>
2023-02-27 11:46:16 +05:30
Rahul Ghangas
62018b4eba
Update documentation for building and testing ( #120 )
...
* 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
2023-02-24 11:50:51 +05:30
oskarth
48fa1b9b3d
chore: Add MIT/Apache dual license ( #119 )
2023-02-24 11:20:01 +08:00
Aaryamann Challani
a6145ab201
feat(rln): expose poseidon to ffi ( #112 )
2023-02-16 13:26:13 +05:30
Aaryamann Challani
e21e9954ac
fix(semaphore): revert ark-circom dependency ( #116 )
2023-02-16 12:32:43 +05:30
Carlos Pérez
de5eb2066a
change: Replace profile overwrites to Workspace Cargo.toml ( #95 )
...
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
2023-02-08 12:38:42 +01:00
tyshko-rostyslav
7aba62ff51
Add rust-clippy to CI ( #108 )
...
Convert clippy warnings to errors, fix them
---------
Co-authored-by: tyshkor <tyshko1@gmail.com>
2023-02-06 05:54:59 +01:00
Rahul Ghangas
cbf8c541c2
test: separate out tests ( #103 )
...
* 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
2023-01-31 21:27:28 +05:30
Rahul Ghangas
5bcbc6c22f
Use cargo make for tests in CI ( #107 )
...
* chore: use cargo make for builds/tests
* chore: add step to install cargo-make
2023-01-31 20:46:33 +05:30