From b42e36b4a4600a1ebb461a165e4a3950d90d7210 Mon Sep 17 00:00:00 2001 From: arnaucube Date: Fri, 27 Dec 2024 19:21:12 +0100 Subject: [PATCH] init repo --- .gitignore | 6 ++++++ Cargo.toml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 21 +++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 LICENSE diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4e30131 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/target +**/*.rs.bk +Cargo.lock +bin/ +pkg/ +wasm-pack.log diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..8463605 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,55 @@ +[package] +name = "ethdos-fold" +version = "0.1.0" +authors = ["arnaucube "] +edition = "2018" + +[lib] +crate-type = ["cdylib", "rlib"] + +[dependencies] +ark-bn254 = { version = "0.5.0", features = ["r1cs"] } +ark-grumpkin = {version="0.5.0", features=["r1cs"]} +ark-ec = "0.5.0" +ark-ff = "0.5.0" +ark-r1cs-std = { version = "0.5.0", default-features = false } +ark-relations = { version = "0.5.0", default-features = false } +ark-crypto-primitives = { version = "^0.5.0", default-features = false, features = [ + "r1cs", + "sponge", + "crh", +] } +ark-std = "0.5.0" +ark-serialize = { version = "^0.5.0", default-features = false } +rand = "0.8.5" +rand_core = {version = "0.6", default-features = false} +base64 = "0.22.1" + +folding-schemes = { git = "https://github.com/privacy-scaling-explorations/sonobe", package = "folding-schemes", features=["light-test"], rev="c6f1a246e0705582a75de6becf4ad21f325fa5a1"} +# folding-schemes = { path = "../sonobe/sonobe_FCIRCUIT-EXTERNALINPUTS-TO-VEC/folding-schemes", package = "folding-schemes", features=["light-test"]} +arkeddsa = { git = "https://github.com/arnaucube/arkeddsa", features=["r1cs"], rev="0a9ea7ac1df07363af0fda723e313e775563b9f4"} +# arkeddsa = { path = "../arkeddsa_TE-to-C", features=["r1cs"]} +blake2 = "0.10" + + +# WASM related dependencies: +wasm-bindgen = "0.2.84" +# The `console_error_panic_hook` crate provides better debugging of panics by +# logging them with `console.error`. This is great for development, but requires +# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for +# code size when deploying. +console_error_panic_hook = { version = "0.1.7", optional = true } + +[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] +getrandom = { version = "0.2", default-features = false, features = ["js"] } # TODO review if needed +web-sys = { version = "0.3.76", features = ["console", "Window", "Performance"] } + +[dev-dependencies] +wasm-bindgen-test = "0.3.34" + +[features] +default = ["console_error_panic_hook"] + +[profile.release] +# Tell `rustc` to optimize for small code size. +opt-level = "s" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..245499e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Privacy & Scaling Explorations (formerly known as appliedzkp) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.