From 42f6ca534bb8068a8c081686f7dbef0420b93b60 Mon Sep 17 00:00:00 2001 From: Skalman Date: Mon, 11 Nov 2024 15:49:22 -0500 Subject: [PATCH] Rename sub-crates to publishable names in preparation to be published --- Cargo.toml | 4 ++-- {ring => ring-proof}/Cargo.toml | 3 ++- {ring => ring-proof}/src/lib.rs | 0 {ring => ring-proof}/src/piop/mod.rs | 0 {ring => ring-proof}/src/piop/params.rs | 0 {ring => ring-proof}/src/piop/prover.rs | 0 {ring => ring-proof}/src/piop/verifier.rs | 0 {ring => ring-proof}/src/ring.rs | 0 {ring => ring-proof}/src/ring_prover.rs | 0 {ring => ring-proof}/src/ring_verifier.rs | 0 {common => w3f-plonk-common}/Cargo.toml | 0 {common => w3f-plonk-common}/src/domain.rs | 0 {common => w3f-plonk-common}/src/gadgets/booleanity.rs | 0 {common => w3f-plonk-common}/src/gadgets/cond_add.rs | 0 {common => w3f-plonk-common}/src/gadgets/fixed_cells.rs | 0 {common => w3f-plonk-common}/src/gadgets/inner_prod.rs | 0 {common => w3f-plonk-common}/src/gadgets/inner_prod_pub.rs | 0 {common => w3f-plonk-common}/src/gadgets/mod.rs | 0 .../src/gadgets/powers_of_two_multiples.rs | 0 {common => w3f-plonk-common}/src/gadgets/sw_cond_add.rs | 0 {common => w3f-plonk-common}/src/gadgets/te_cond_add.rs | 0 {common => w3f-plonk-common}/src/lib.rs | 0 {common => w3f-plonk-common}/src/piop.rs | 0 {common => w3f-plonk-common}/src/prover.rs | 0 {common => w3f-plonk-common}/src/setup.rs | 0 {common => w3f-plonk-common}/src/test_helpers.rs | 0 {common => w3f-plonk-common}/src/transcript.rs | 0 {common => w3f-plonk-common}/src/verifier.rs | 0 28 files changed, 4 insertions(+), 3 deletions(-) rename {ring => ring-proof}/Cargo.toml (95%) rename {ring => ring-proof}/src/lib.rs (100%) rename {ring => ring-proof}/src/piop/mod.rs (100%) rename {ring => ring-proof}/src/piop/params.rs (100%) rename {ring => ring-proof}/src/piop/prover.rs (100%) rename {ring => ring-proof}/src/piop/verifier.rs (100%) rename {ring => ring-proof}/src/ring.rs (100%) rename {ring => ring-proof}/src/ring_prover.rs (100%) rename {ring => ring-proof}/src/ring_verifier.rs (100%) rename {common => w3f-plonk-common}/Cargo.toml (100%) rename {common => w3f-plonk-common}/src/domain.rs (100%) rename {common => w3f-plonk-common}/src/gadgets/booleanity.rs (100%) rename {common => w3f-plonk-common}/src/gadgets/cond_add.rs (100%) rename {common => w3f-plonk-common}/src/gadgets/fixed_cells.rs (100%) rename {common => w3f-plonk-common}/src/gadgets/inner_prod.rs (100%) rename {common => w3f-plonk-common}/src/gadgets/inner_prod_pub.rs (100%) rename {common => w3f-plonk-common}/src/gadgets/mod.rs (100%) rename {common => w3f-plonk-common}/src/gadgets/powers_of_two_multiples.rs (100%) rename {common => w3f-plonk-common}/src/gadgets/sw_cond_add.rs (100%) rename {common => w3f-plonk-common}/src/gadgets/te_cond_add.rs (100%) rename {common => w3f-plonk-common}/src/lib.rs (100%) rename {common => w3f-plonk-common}/src/piop.rs (100%) rename {common => w3f-plonk-common}/src/prover.rs (100%) rename {common => w3f-plonk-common}/src/setup.rs (100%) rename {common => w3f-plonk-common}/src/test_helpers.rs (100%) rename {common => w3f-plonk-common}/src/transcript.rs (100%) rename {common => w3f-plonk-common}/src/verifier.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index c1ae074..47f2854 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [workspace] resolver = "2" members = [ - "common", - "ring", + "w3f-plonk-common", + "ring-proof", ] [workspace.dependencies] diff --git a/ring/Cargo.toml b/ring-proof/Cargo.toml similarity index 95% rename from ring/Cargo.toml rename to ring-proof/Cargo.toml index 7ab75b3..3a1458a 100644 --- a/ring/Cargo.toml +++ b/ring-proof/Cargo.toml @@ -1,3 +1,4 @@ + [package] name = "ring" version = "0.1.0" @@ -15,7 +16,7 @@ ark-poly.workspace = true ark-serialize.workspace = true fflonk.workspace = true rayon = { workspace = true, optional = true } -common = { path = "../common", default-features = false } +common = { path = "../w3f-plonk-common", default-features = false } arrayvec = { version = "0.7", default-features = false } ark-transcript = { version = "0.0.2", default-features = false } diff --git a/ring/src/lib.rs b/ring-proof/src/lib.rs similarity index 100% rename from ring/src/lib.rs rename to ring-proof/src/lib.rs diff --git a/ring/src/piop/mod.rs b/ring-proof/src/piop/mod.rs similarity index 100% rename from ring/src/piop/mod.rs rename to ring-proof/src/piop/mod.rs diff --git a/ring/src/piop/params.rs b/ring-proof/src/piop/params.rs similarity index 100% rename from ring/src/piop/params.rs rename to ring-proof/src/piop/params.rs diff --git a/ring/src/piop/prover.rs b/ring-proof/src/piop/prover.rs similarity index 100% rename from ring/src/piop/prover.rs rename to ring-proof/src/piop/prover.rs diff --git a/ring/src/piop/verifier.rs b/ring-proof/src/piop/verifier.rs similarity index 100% rename from ring/src/piop/verifier.rs rename to ring-proof/src/piop/verifier.rs diff --git a/ring/src/ring.rs b/ring-proof/src/ring.rs similarity index 100% rename from ring/src/ring.rs rename to ring-proof/src/ring.rs diff --git a/ring/src/ring_prover.rs b/ring-proof/src/ring_prover.rs similarity index 100% rename from ring/src/ring_prover.rs rename to ring-proof/src/ring_prover.rs diff --git a/ring/src/ring_verifier.rs b/ring-proof/src/ring_verifier.rs similarity index 100% rename from ring/src/ring_verifier.rs rename to ring-proof/src/ring_verifier.rs diff --git a/common/Cargo.toml b/w3f-plonk-common/Cargo.toml similarity index 100% rename from common/Cargo.toml rename to w3f-plonk-common/Cargo.toml diff --git a/common/src/domain.rs b/w3f-plonk-common/src/domain.rs similarity index 100% rename from common/src/domain.rs rename to w3f-plonk-common/src/domain.rs diff --git a/common/src/gadgets/booleanity.rs b/w3f-plonk-common/src/gadgets/booleanity.rs similarity index 100% rename from common/src/gadgets/booleanity.rs rename to w3f-plonk-common/src/gadgets/booleanity.rs diff --git a/common/src/gadgets/cond_add.rs b/w3f-plonk-common/src/gadgets/cond_add.rs similarity index 100% rename from common/src/gadgets/cond_add.rs rename to w3f-plonk-common/src/gadgets/cond_add.rs diff --git a/common/src/gadgets/fixed_cells.rs b/w3f-plonk-common/src/gadgets/fixed_cells.rs similarity index 100% rename from common/src/gadgets/fixed_cells.rs rename to w3f-plonk-common/src/gadgets/fixed_cells.rs diff --git a/common/src/gadgets/inner_prod.rs b/w3f-plonk-common/src/gadgets/inner_prod.rs similarity index 100% rename from common/src/gadgets/inner_prod.rs rename to w3f-plonk-common/src/gadgets/inner_prod.rs diff --git a/common/src/gadgets/inner_prod_pub.rs b/w3f-plonk-common/src/gadgets/inner_prod_pub.rs similarity index 100% rename from common/src/gadgets/inner_prod_pub.rs rename to w3f-plonk-common/src/gadgets/inner_prod_pub.rs diff --git a/common/src/gadgets/mod.rs b/w3f-plonk-common/src/gadgets/mod.rs similarity index 100% rename from common/src/gadgets/mod.rs rename to w3f-plonk-common/src/gadgets/mod.rs diff --git a/common/src/gadgets/powers_of_two_multiples.rs b/w3f-plonk-common/src/gadgets/powers_of_two_multiples.rs similarity index 100% rename from common/src/gadgets/powers_of_two_multiples.rs rename to w3f-plonk-common/src/gadgets/powers_of_two_multiples.rs diff --git a/common/src/gadgets/sw_cond_add.rs b/w3f-plonk-common/src/gadgets/sw_cond_add.rs similarity index 100% rename from common/src/gadgets/sw_cond_add.rs rename to w3f-plonk-common/src/gadgets/sw_cond_add.rs diff --git a/common/src/gadgets/te_cond_add.rs b/w3f-plonk-common/src/gadgets/te_cond_add.rs similarity index 100% rename from common/src/gadgets/te_cond_add.rs rename to w3f-plonk-common/src/gadgets/te_cond_add.rs diff --git a/common/src/lib.rs b/w3f-plonk-common/src/lib.rs similarity index 100% rename from common/src/lib.rs rename to w3f-plonk-common/src/lib.rs diff --git a/common/src/piop.rs b/w3f-plonk-common/src/piop.rs similarity index 100% rename from common/src/piop.rs rename to w3f-plonk-common/src/piop.rs diff --git a/common/src/prover.rs b/w3f-plonk-common/src/prover.rs similarity index 100% rename from common/src/prover.rs rename to w3f-plonk-common/src/prover.rs diff --git a/common/src/setup.rs b/w3f-plonk-common/src/setup.rs similarity index 100% rename from common/src/setup.rs rename to w3f-plonk-common/src/setup.rs diff --git a/common/src/test_helpers.rs b/w3f-plonk-common/src/test_helpers.rs similarity index 100% rename from common/src/test_helpers.rs rename to w3f-plonk-common/src/test_helpers.rs diff --git a/common/src/transcript.rs b/w3f-plonk-common/src/transcript.rs similarity index 100% rename from common/src/transcript.rs rename to w3f-plonk-common/src/transcript.rs diff --git a/common/src/verifier.rs b/w3f-plonk-common/src/verifier.rs similarity index 100% rename from common/src/verifier.rs rename to w3f-plonk-common/src/verifier.rs