Ekaterina Broslavskaya
0d5642492a
Stateless Feature ( #265 )
...
* add stateless feature and tests
* update docs and new function
2024-08-28 13:41:18 +03:00
Aaryamann Challani
d8f813bc2e
chore(rln): refactor resource initialization ( #260 )
...
* chore(rln): optimize into Lazy OnceCells
* fix
* fix: dont change duration
* fix: increase duration?
* chore: add backtrace
* fix: remove plotter to avoid f64 range failure
* fix: remove ci alteration
* fix: use arc over witness calc
* fix: remove more lifetimes
* fix: benchmark correct fn call, not the getter
* fix: bench config
2024-06-17 13:43:09 +05:30
Aaryamann Challani
c6493bd10f
chore(rln): use ark serialized verification key for faster serde ( #259 )
...
* chore(rln): use ark serialized verification key for faster serde
* fix: unused imports
* fix: rm verification_key.json
* fix: s/vk_from_slice/vk_from_ark_serialized/g
2024-06-14 11:03:55 +05:30
Ekaterina Broslavskaya
820240d8c0
fix json serialization ( #253 )
2024-05-21 12:42:26 +07:00
Ekaterina Broslavskaya
d3d85c3e3c
feat(rln): function for checking indices of leaves which are set to zero ( #249 )
...
* add function for empty leaves
* fix from linter
* fix rebase
* update test in utils
* fix
* fix(trees): inconsistencies in override_range (#250 )
* fix tests
---------
Co-authored-by: Aaryamann Challani <43716372+rymnc@users.noreply.github.com>
2024-05-17 21:40:42 +05:30
Ekaterina Broslavskaya
0005b1d61f
Expose a public function to fetch the root of a subtree at level n ( #247 )
...
* add get_subroot function
* update test
* update pmtree dependecy
2024-05-17 16:35:18 +07:00
Ekaterina Broslavskaya
4931b25237
fix(rln): Remove resources folder, update missed docs ( #246 )
...
* remove resources folder, update missed docs
* refactor
2024-05-10 18:13:00 +07:00
Ekaterina Broslavskaya
51939be4a8
chore(rln): tests and benchmarks review ( #243 )
...
* add set benches
* add set benches
* refactor tests
* took out the general functions in ffi
* rollback file reader
2024-05-09 17:37:34 +07:00
Ekaterina Broslavskaya
8581ac0b78
chore(rln): add ark-zkey support ( #242 )
...
* Add Submodule
* Add arkzkey
* make arkzkey support as feature
* update submodule url
* add abstract around feature
* new bench file
* update ci
2024-05-06 18:09:22 +07:00
tyshko-rostyslav
a372053047
Remove height 32 from RLN ( #239 )
...
* rm tree height from circuit
* rm corresponding logic from ffi
* fm from tests
* rm height 32 resources
* remove `TEST_PARAMETERS_INDEX` and related comments
2024-04-29 18:26:29 +05:30
Aaryamann Challani
30d5f94181
chore(rln): return empty metadata if it doesnt exist ( #230 )
...
* chore(rln): return empty metadata if it doesnt exist
* fix: clippy
2024-03-07 02:22:37 +05:30
Aaryamann Challani
8614b2a33a
feat: rln-v2 ( #204 )
...
* feat(rln-v2): update serde for rln-v2 (#202 )
* feat(rln-v2): update serde for rln-v2
* fix: public tests that needed to append the new fields
* s/id_commitments/rate_commitments (#205 )
* feat: rename public, protocol and update tests to use rate_commitments
* fix: into()
* `message_id` range check (#210 )
* feature: range check added
* fmt
* feature: message_id_range_check
* fix: corresponding change of types
* comments: function level
* fmt
* fix(rln): tests (#212 )
* most changes
* fix
* fix protocol tests
* fmt
* ffi tests fix
* feat(rln-v2): new artifacts, removed older ones (#211 )
* feat(rln-v2): new artifacts, removed older ones
* wip: working branch
* fix: remove more refs to epoch + rln_identifier
* Updated serde in RLN proof verification
* Updated artifacts
* chore: update
* chore: update
* hardcoded test works
* fix: proof generation and verification
* fix: rln-wasm tests
* fix: ffi tests
* fix: rln-wasm test
* fix: recover_id_secret
* Fix message (#217 )
---------
Co-authored-by: rymnc <43716372+rymnc@users.noreply.github.com>
* chore: Release
---------
Co-authored-by: tyshko-rostyslav <122977916+tyshko-rostyslav@users.noreply.github.com>
2023-10-03 21:28:21 +05:30
Aaryamann Challani
f8fc455d08
chore(rln): expose leaves_set api ( #213 )
2023-09-12 14:44:33 +05:30
Richard Ramos
7d63912ace
chore: accept tree_config in new_with_params
2023-08-07 08:48:41 -04:00
Aaryamann Challani
d1414a44c5
fix(rln): atomic operation edge case ( #195 )
...
* fix(rln): atomic operation edge case
* fmt
* fix: bug
* test: new batching mechanism
* Revert "test: new batching mechanism"
This reverts commit 396c2ec342
.
* fix: end should be max index + 1
* fix: optimization
* fix: apply cleanup
* fix: idiomatic leaf setting
* fix: abstract out logic
* fix: type aliasing for verbose types
* fix: remove_indices_and_set_leaves fn
2023-08-01 18:06:52 +05:30
Aaryamann Challani
2793fe0e24
feat(rln): expose set_metadata and get_metadata public and ffi apis ( #178 )
2023-06-15 20:35:49 +05:30
Aaryamann Challani
0d35571215
feat(rln): get_leaf ffi and public api ( #177 )
2023-06-08 21:33:09 +05:30
Aaryamann Challani
c2d386cb74
feat(rln): public, ffi for atomic ops ( #162 )
2023-05-16 10:00:32 +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
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
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
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
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
Aaryamann Challani
a6145ab201
feat(rln): expose poseidon to ffi ( #112 )
2023-02-16 13:26:13 +05:30
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