Skip to content

Commit

Permalink
Revert "Merge pull request #2463 from AleoHQ/feat/testnetv1"
Browse files Browse the repository at this point in the history
This reverts commit 0bd71b5, reversing
changes made to f6ace91.
  • Loading branch information
zosorock committed May 24, 2024
1 parent 54c17c0 commit a129de0
Show file tree
Hide file tree
Showing 48 changed files with 4 additions and 1,845 deletions.
409 changes: 0 additions & 409 deletions circuit/environment/src/canary_circuit.rs

This file was deleted.

12 changes: 1 addition & 11 deletions circuit/environment/src/helpers/converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::{CanaryCircuit, Circuit, LinearCombination, TestnetCircuit, Variable, R1CS};
use crate::{Circuit, LinearCombination, TestnetCircuit, Variable, R1CS};
use snarkvm_curves::edwards_bls12::Fq;
use snarkvm_fields::PrimeField;

Expand Down Expand Up @@ -44,16 +44,6 @@ impl snarkvm_algorithms::r1cs::ConstraintSynthesizer<Fq> for TestnetCircuit {
}
}

impl snarkvm_algorithms::r1cs::ConstraintSynthesizer<Fq> for CanaryCircuit {
/// Synthesizes the constraints from the environment into a `snarkvm_algorithms::r1cs`-compliant constraint system.
fn generate_constraints<CS: snarkvm_algorithms::r1cs::ConstraintSystem<Fq>>(
&self,
cs: &mut CS,
) -> Result<(), snarkvm_algorithms::r1cs::SynthesisError> {
crate::canary_circuit::CANARY_CIRCUIT.with(|circuit| circuit.borrow().generate_constraints(cs))
}
}

impl<F: PrimeField> R1CS<F> {
/// Synthesizes the constraints from the environment into a `snarkvm_algorithms::r1cs`-compliant constraint system.
fn generate_constraints<CS: snarkvm_algorithms::r1cs::ConstraintSystem<F>>(
Expand Down
3 changes: 0 additions & 3 deletions circuit/environment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ extern crate snarkvm_circuit_environment_witness;

pub use snarkvm_circuit_environment_witness::rename_selfs;

pub mod canary_circuit;
pub use canary_circuit::*;

pub mod circuit;
pub use circuit::*;

Expand Down
Loading

0 comments on commit a129de0

Please sign in to comment.