Skip to content

Commit 2651bc4

Browse files
authored
feat: plonkish CCS (#4)
1 parent 3785d96 commit 2651bc4

File tree

11 files changed

+1092
-130
lines changed

11 files changed

+1092
-130
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[target.wasm32-unknown-unknown]
2+
rustflags = ["--cfg=getrandom_backend=\"wasm_js\""]

Cargo.lock

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

Cargo.toml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,27 @@ license = "MIT"
77
name = "custom-constraints"
88
readme = "README.md"
99
repository = "https://github.com/autoparallel/custom-constraints"
10-
version = "0.1.0"
10+
version = "0.2.0"
11+
12+
# Needed to deal with ark-ff's BS
13+
[features]
14+
asm = []
15+
default = []
1116

1217
[dependencies]
13-
ark-ff = { version = "0.5", default-features = false, features = [
14-
"parallel",
15-
"asm",
16-
] }
17-
rayon = { version = "1.10" }
18+
[target.'cfg(target_arch = "x86_64")'.dependencies]
19+
ark-ff = { version = "0.5", features = ["parallel", "asm"] }
20+
21+
[target.'cfg(not(target_arch = "x86_64"))'.dependencies]
22+
ark-ff = { version = "0.5", default-features = false, features = ["parallel"] }
1823

1924
[dev-dependencies]
2025
ark-std = { version = "0.5", default-features = false, features = ["std"] }
21-
rand = "0.8"
26+
rand = "0.9"
2227
rstest = { version = "0.24", default-features = false }
2328

2429
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
25-
getrandom = { version = "0.2", features = ["js"] }
30+
getrandom = { version = "0.3", features = ["wasm_js"] }
2631
wasm-bindgen = { version = "0.2" }
2732
wasm-bindgen-test = { version = "0.3" }
2833

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ See the [Customizable constraint systems for succinct arguments](https://eprint.
3838
## Roadmap
3939

4040
- [x] CSR Sparse matrices
41-
- [ ] CCS structure
42-
- [ ] CCS checking
43-
- [ ] CCS builder/allocator (i.e., from constraints)
41+
- [x] CCS structure
42+
- [x] CCS checking
43+
- [x] CCS builder/allocator (i.e., from constraints)
44+
- [x] Plonkish CCS
45+
- [ ] Noir to Plonkish CCS
4446

4547
## Contributing
4648

justfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ build-wasm:
124124
test:
125125
@just header "Running native architecture tests"
126126
cargo test --workspace --tests --all-features
127+
cargo test --workspace --doc --all-features
127128
@just header "Running wasm tests"
128129
wasm-pack test --node
129130

@@ -159,7 +160,7 @@ semver:
159160
# Run format for the workspace
160161
fmt:
161162
@just header "Formatting code"
162-
cargo fmt --all
163+
cargo +nightly fmt --all
163164
taplo fmt
164165

165166
# Check for unused dependencies

0 commit comments

Comments
 (0)