Dmitriy Ryajov ebef300064
Ark circom and rust ffi (#5)
* wip rust ffi

* proper test component instantiation

* adding quick&dirty poseidon implementation

* update gitignode

* gitignore

* adding rust circuit tests

* gitignore

* rename

* add storer tests

* move utils under circuit_tests

* fix storage proofs

* wip: ffi

* instantiate storer

* enable ark-serialize

* delete js tests

* update CI to run cargo tests

* keep the artifacts dir

* update .gitignore

* build circuits

* remove package json

* place built circuits in correct dirs

* update gitignore

* remove node

* fix ci

* updating readme

* storageproofs.rs to storage_proofs.rs

* flatten tests chunks by default

* add ffi

* fix digest

* minor fixes for ffi

* fix storer test

* use random data for chunks

* debug optimizations to speed witness generation

* clippy & other lint stuff

* add back missing unsafe blocks

* release mode disables constraint checks

* fix ffi

* fix hashes serialization

* make naming more consistent

* add missing pragma

* use correct circuits

* add todo

* add clarification to readme

* silence unused warning

* include constants file into exec

* remove unused imports
2023-04-12 16:17:00 -06:00
2023-04-12 16:17:00 -06:00
2023-04-12 16:17:00 -06:00
2023-04-12 16:17:00 -06:00
2023-04-12 16:17:00 -06:00
2023-04-12 16:17:00 -06:00
2023-04-12 16:17:00 -06:00
2023-02-09 10:40:23 -06:00
2023-02-09 10:40:23 -06:00
2023-04-12 16:17:00 -06:00

codex-zk

License: Apache License: MIT

WIP Zero Knowledge tooling for the Codex project

License

Licensed and distributed under either of

or

at your option. These files may not be copied, modified, or distributed except according to those terms.

Usage

First, clone the repo and install the circom components:

git clone git@github.com:status-im/codex-storage-proofs.git
cd codex-storage-proofs
npm i
cd circuits

Nex, compile circuits:

../scripts/circuit_prep.sh

Running the tests:

cargo test # don't run in release more as it dissables circuit assets
Description
testing zk tooling
Readme
Languages
Rust 65.4%
Circom 11.6%
JavaScript 11.4%
Nim 10.4%
Shell 1.2%