mirror of
https://github.com/codex-storage/circom-compat.git
synced 2025-02-17 05:16:25 +00:00
* Import circom-2 test vectors
* Add failing test under feature flag
* Add exceptionHandler
* Add showSharedRWMemory
* Add getFieldNumLen32 and disable getFrLen
* Add getVersion
Also print version, n32
* Add getRawPrime
- Disable getPtrRawPrime
- Write as conditional cfg code blocks
* Refactor cfg code blocks
* Add readSharedRWMemory and get prime from WASM mem
- Add fromArray32 convenience function
* WIP: Debug R1CSfile header
field_size in header is 1, not 32 as expected
Don't see anything recently changed here:
https://github.com/iden3/r1csfile/blob/master/src/r1csfile.js (used by snarkjs)
But this seems new: 0149dc0643/constraint_writers/src/r1cs_writer.rs
* Add CircomVersion struct to Wasm
* XXX: Enum test
* Trait version
* Move traits to Circom, CircomBase, Circom2
* Simplify Wasm struct and remove version
* Feature gate Circom1/Circom2 traits
* Use cfg_if for witness calculation
Make normal dependency
* Fix visibilty for both test paths
* Remove println
Can introduce tracing separately
* refactor
* Make clippy happy with imports, unused variables
50 lines
1.5 KiB
TOML
50 lines
1.5 KiB
TOML
[package]
|
|
name = "ark-circom"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
# WASM operations
|
|
wasmer = { version = "2.0" }
|
|
fnv = { version = "1.0.3", default-features = false }
|
|
num-traits = { version = "0.2.0", default-features = false }
|
|
num-bigint = { version = "0.4", default-features = false, features = ["rand"] }
|
|
|
|
# ZKP Generation
|
|
ark-ec = { version = "0.3.0", default-features = false, features = ["parallel"] }
|
|
ark-ff = { version = "0.3.0", default-features = false, features = ["parallel", "asm"] }
|
|
ark-std = { version = "0.3.0", default-features = false, features = ["parallel"] }
|
|
ark-bn254 = { version = "0.3.0" }
|
|
ark-groth16 = { git = "https://github.com/arkworks-rs/groth16", rev = "765817f", features = ["parallel"] }
|
|
ark-poly = { version = "^0.3.0", default-features = false, features = ["parallel"] }
|
|
ark-relations = { version = "0.3.0", default-features = false }
|
|
ark-serialize = { version = "0.3.0", default-features = false }
|
|
|
|
# decoding of data
|
|
hex = "0.4.3"
|
|
byteorder = "1.4.3"
|
|
|
|
# ethereum compat
|
|
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false }
|
|
|
|
# error handling
|
|
thiserror = "1.0.26"
|
|
color-eyre = "0.5"
|
|
criterion = "0.3.4"
|
|
|
|
cfg-if = "1.0"
|
|
|
|
[dev-dependencies]
|
|
hex-literal = "0.2.1"
|
|
tokio = { version = "1.7.1", features = ["macros"] }
|
|
serde_json = "1.0.64"
|
|
ethers = { git = "https://github.com/gakonst/ethers-rs", features = ["abigen"] }
|
|
|
|
[[bench]]
|
|
name = "groth16"
|
|
harness = false
|
|
|
|
[features]
|
|
bench-complex-all = []
|
|
circom-2 = []
|