Skip to content

Commit 4c341de

Browse files
authored
fix: remove dir crate (#5)
* reading cache directory during runtime without dir crate Signed-off-by: Amirhossein Khajehpour <khajepour.amirhossein@gmail.com> * merged the two functions and removed re-exporting Signed-off-by: Amirhossein Khajehpour <khajepour.amirhossein@gmail.com> * added an example for mixed size homomorphic commitment * removed extra comments --------- Signed-off-by: Amirhossein Khajehpour <khajepour.amirhossein@gmail.com>
1 parent ff9b8fb commit 4c341de

6 files changed

Lines changed: 215 additions & 164 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,5 @@ jobs:
7171
run: cargo run --example homomorphic --features backends
7272
- name: Run non_square example
7373
run: cargo run --example non_square --features backends
74+
- name: Run homomorphic_mixed_sizes example
75+
run: cargo run --example homomorphic_mixed_sizes --features backends

Cargo.lock

Lines changed: 4 additions & 145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,13 @@ arkworks = [
4747
]
4848
parallel = ["dep:rayon", "ark-ec?/parallel", "ark-ff?/parallel"]
4949
cache = ["arkworks", "dep:once_cell", "parallel"]
50-
disk-persistence = ["dep:dirs"]
50+
disk-persistence = []
5151

5252
[dependencies]
5353
thiserror = "2.0"
5454
rand_core = "0.6"
5555
dory-derive = { version = "0.1.0", path = "derive" }
5656
tracing = "0.1"
57-
dirs = { version = "5.0", optional = true }
5857

5958
# Arkworks backend
6059
ark-bn254 = { version = "0.5.0", optional = true }
@@ -85,6 +84,10 @@ required-features = ["backends"]
8584
name = "non_square"
8685
required-features = ["backends"]
8786

87+
[[example]]
88+
name = "homomorphic_mixed_sizes"
89+
required-features = ["backends"]
90+
8891
[[bench]]
8992
name = "arkworks_proof"
9093
harness = false

0 commit comments

Comments
 (0)