Browse Source

upgrade to latest Sonobe version

main
arnaucube 3 months ago
parent
commit
fb70f92ed7
2 changed files with 5 additions and 12 deletions
  1. +2
    -8
      Cargo.toml
  2. +3
    -4
      src/fold_babyjubjubs.rs

+ 2
- 8
Cargo.toml

@ -19,15 +19,9 @@ ark-std = "0.5.0"
rand = "0.8.5"
rand_core = {version = "0.6", default-features = false}
# Note: for testing purposes we use the 'light-test' feature when importing
# Sonobe's folding-schemes, but for a real-world usage it must be used without
# this feature (but then the DeciderETH circuit is bigger and takes more time
# to compute).
folding-schemes = { git = "https://github.com/privacy-scaling-explorations/sonobe", package = "folding-schemes", features=["light-test"], rev="964f9b6de91283c2bf12ffdd7578125dc999104a"}
# folding-schemes = { path = "../../sonobe/sonobe_FCIRCUIT-EXTINP/folding-schemes", package = "folding-schemes", features=["light-test"]}
folding-schemes = { git = "https://github.com/privacy-scaling-explorations/sonobe", package = "folding-schemes", rev="c6f1a246e0705582a75de6becf4ad21f325fa5a1"}
blake2 = "0.10"
arkeddsa = { git = "https://github.com/arnaucube/arkeddsa", features=["r1cs"], rev="67c077e0e564d5f8d193a44f67357dfd1180cb64"}
# arkeddsa = { path = "../arkeddsa_TE-to-C", features=["r1cs"]}
arkeddsa = { git = "https://github.com/arnaucube/arkeddsa", features=["r1cs"], rev="0a9ea7ac1df07363af0fda723e313e775563b9f4"}

+ 3
- 4
src/fold_babyjubjubs.rs

@ -1,7 +1,7 @@
#[cfg(test)]
mod tests {
use ark_bn254::{constraints::GVar, Fr, G1Projective as G1};
use ark_grumpkin::{constraints::GVar as GVar2, Projective as G2};
use ark_bn254::{Fr, G1Projective as G1};
use ark_grumpkin::Projective as G2;
use std::time::Instant;
use arkeddsa::ed_on_bn254_twist::{constraints::EdwardsVar, EdwardsProjective};
@ -44,8 +44,7 @@ mod tests {
// define type aliases for the FoldingScheme (FS) and Decider (D), to avoid writting the
// whole type each time
pub type FS<const S: usize> =
Nova<G1, GVar, G2, GVar2, FC<S>, Pedersen<G1>, Pedersen<G2>, false>;
pub type FS<const S: usize> = Nova<G1, G2, FC<S>, Pedersen<G1>, Pedersen<G2>, false>;
// prepare the Nova prover & verifier params
let nova_preprocess_params =

Loading…
Cancel
Save