Commit Graph

123 Commits

Author SHA1 Message Date
Richard Ramos 2455bea922
refactor(RLN): use iterators instead of loops (#33)
* refactor(RLN): use iterators instead of loops
* fix(rln): cargo fmt
* fix(rln): cargo clippy: avoid Vec object creation

Co-authored-by: s1fr0 <28568419+s1fr0@users.noreply.github.com>
2022-08-22 07:48:31 -04:00
G 824296e695
refactor(rln): use space-efficient Merkle tree implementation (#32)
* refactor(rln): replace merkle tree implementation

refactor(rln): before switch

refactor(rln): replace merkle tree implementation

fix(rln): cargo fmt, cargo clippy

cargo fmt

* chore(rln): add comments

* chore(rln): cargo fmt; cargo clippy

* refactor(rln): improve Merkle tree crate

- Integrate previous Full storage MT with Optimal (storage) MT implementation
- Align the two implementation to same API/traits implementations
- Align implementations as much as possible to same language and variable names/meaning
- Comment code
- Add descriptions to each module's crate
- address reviewer's comments

* refactor(rln): fmt, clippy, remove pub from next index, update output type for some proc
2022-08-17 11:08:14 +02:00
G 64f5083639
RLN: update README (#27)
* refactor(rln): update readme

* fix(rln): update README in light of https://github.com/vacp2p/zerokit/pull/30
2022-08-07 16:51:03 +02:00
G 3378aed857
refactor(rln): Update Merkle tree initialization method (#30)
* refactor(rln): fix merkle tree initialization

* fix(rln): cargo fmt; cargo clippy
2022-08-05 12:36:06 +02:00
oskarth cbb10efc10
Update labels.yml 2022-08-02 16:20:17 +08:00
G c1db14dd7c
refactor(rln): improve circuit loading performances and tests fix (#26)
* refactor(rln): change witness generation logic to improve performance

* rln(refactor): - change circuit loading logic; - update tests with tree size 20
2022-07-29 13:40:16 +08:00
Oskar Thoren 9ca9c227e4
chore: add labels
Adding all because why not
2022-07-27 18:44:38 +08:00
Oskar Thoren aab10342f3
ci: Add to new project board 2022-07-27 18:43:34 +08:00
Oskar Thoren cc7270987d
ci: Add GH workflow for syncing labels 2022-07-27 17:27:39 +08:00
Richard Ramos 7fe9bb4f94
chore(rln): add "staticlib" to crate-type in Cargo.toml (#24) 2022-07-25 12:54:13 -04:00
oskarth 42e1743198
fix(rln): Fix CI by updating ethers dependency (#25) 2022-07-25 14:18:50 +08:00
G 9cc333811b
RLN: Update API (#22)
* refactor(rln): integrate semaphore's merkle tree implementation

* feat(rln): expand API and refactor

* refactor(rln):  support external resource path for circuits/keys, add circuit for tree_height = 20

* feat(rln): add cargo library directives
2022-06-29 18:56:03 +02:00
G 95352a4a7c
RLN: Update Rust and C API (#20)
* fix(rln): ignore dirty rln submodule

* feat(rln): add RLN witness & proof values byte serialization/deserialization

* feat(RLN): add Merkle-tree public APIs

* fix(rln): use references to avoid unnecessary clone()

* fix(rln): fix rust public API, code refactor

* fix(rln): change vector length serialization from usize to u64; add random witness generation

* feat(rln): add C APIs

* chore(rln): cargo format/clippy

* feat(rln): add C APIs tests

* chore(rln): minor code restyling

* refactor(rln): change &Vec<u8> to &[u8] (avoids  new object creation)
2022-06-22 15:36:54 +01:00
Oskar Thoren 89593dc033
ci: Add new issues and PRs to vac-research board 2022-06-20 12:53:35 +01:00
s1fr0 eea9fdbeb1
Merge branch 'master' of https://github.com/vacp2p/zerokit 2022-06-09 15:58:05 +02:00
s1fr0 8e065d4a83
fix(rln): fixed proof generation/verification and E2E tests
chore(rln): clippy and fmt

fix(rln): cargo fix

ci: update submodules

chore(rln): remove unnecessary test, restyle

fix(rln): switch to field type, add field arithmetic

feat(rln): public input computation from witness

fix(rln): fix semaphore crate version
2022-06-09 15:57:03 +02:00
G 98ebd24261
Merge pull request #18 from vacp2p/fix-e2e
RLN: fix proof generation/verification and E2E tests, add RLN utilities
2022-06-09 14:27:21 +02:00
s1fr0 1bf339f6eb
fix(rln): fix semaphore crate version 2022-06-09 13:45:15 +02:00
s1fr0 30d820aeb9
feat(rln): public input computation from witness 2022-06-09 11:50:12 +02:00
s1fr0 7ac5b60cb6
fix(rln): switch to field type, add field arithmetic 2022-06-09 00:41:50 +02:00
s1fr0 cf6168bf4e
chore(rln): remove unnecessary test, restyle 2022-06-02 19:43:59 +02:00
s1fr0 8f738ef327
Merge branch 'master' into fix-e2e 2022-06-02 15:42:43 +02:00
Oskar Thoren 43e806b3ba
ci: update submodules 2022-06-02 12:04:56 +01:00
s1fr0 967315bc26
fix(rln): cargo fix 2022-06-02 10:21:10 +02:00
s1fr0 6d3571034d
chore(rln): clippy and fmt 2022-06-01 16:57:56 +02:00
s1fr0 1bac4453db
fix(rln): fixed proof generation/verification and E2E tests 2022-06-01 16:40:10 +02:00
Oskar Thoren 8171439a44
style(semaphore): cargo fmt 2022-06-01 15:23:09 +01:00
Oskar Thoren c4ec421e2c
docs(semaphore): Add README 2022-06-01 15:20:39 +01:00
Oskar Thoren e7fdcd1e8a
refactor(semaphore): Use crate::protocol for tests
Instead of semaphore-rs as black box.
2022-06-01 15:17:46 +01:00
Oskar Thoren 61b63cb90e
chore(semaphore): Cargo.toml tweaks
Name has to be different to avoid workspace rlib clash, it seems like.
2022-06-01 15:17:17 +01:00
Oskar Thoren d9b5c9a371
feat(semaphore): Import protocol, circuit, build
From semaphore-rs.
2022-06-01 14:53:50 +01:00
Oskar Thoren 04e3e3a7eb
chore(semaphore): Update dependencies 2022-06-01 14:53:12 +01:00
Oskar Thoren d9b3034804
chore(semaphore): Add semaphore submodule
Note previous commit to keep same script install flow for now.
2022-06-01 14:40:41 +01:00
Oskar Thoren 075a755af8
test(semaphore): Import basic end to end test 2022-06-01 13:13:00 +01:00
Oskar Thoren bcc38c41e2
chore(semaphore): Add Semaphore dependency 2022-06-01 13:12:41 +01:00
Oskar Thoren 58b0863b69
chore: Add semaphore to workspace 2022-05-24 12:36:19 +01:00
Oskar Thoren 1d858175fc
feat(semaphore): Init crate 2022-05-24 12:35:33 +01:00
Oskar Thoren 23171bb041
docs(rln): Compiling circuits 2022-05-24 12:14:02 +01:00
Oskar Thoren af0397fa09
chore(rln): Add git submodule 2022-05-24 12:08:42 +01:00
Oskar Thoren 45520e7869
refactor(rln): Upgrade semaphore-rs 2022-05-23 09:28:13 +01:00
Oskar Thoren 1d8408d743
style(rln): cargo fmt 2022-05-23 08:07:32 +01:00
Oskar Thoren f2f3c820ff
test(rln): Add passing semaphore test 2022-03-18 19:17:50 +08:00
Oskar Thoren ddb3efc4a5
docs(rln): more notes and todos 2022-03-18 15:55:41 +08:00
Oskar Thoren cb38360311
docs(rln): comments and notes 2022-03-18 15:01:37 +08:00
Oskar Thoren 6b3be4438e
refactor(rln): move out json spike to separate fn 2022-03-18 14:42:38 +08:00
Oskar Thoren 0d087e3f0a
test(rln): end to end test wip 2022-03-18 14:32:54 +08:00
Oskar Thoren 1e8e834887
feat(rln): add wip rln protocol abstraction 2022-03-18 14:23:44 +08:00
Oskar Thoren ceddd20ff1
fix(rln): correct rln wasm path 2022-03-18 14:23:23 +08:00
Oskar Thoren be1fafd27f
feat(rln): add rln zkey based circuit abstraction
Different from CircomConfig etc
2022-03-18 14:13:10 +08:00
Oskar Thoren c566b29c6d
docs: add notes and todos 2022-03-18 13:38:48 +08:00