Skip to content

Commit

Permalink
chore: change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
eigmax committed Jul 19, 2024
1 parent c83023f commit e4a3470
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions groth16/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pub fn groth16_prove(

#[cfg(not(any(feature = "cuda", feature = "opencl")))]
#[allow(clippy::too_many_arguments)]
pub fn groth16_prove_with_cache<E: Engine + crate::json_utils::Parser>(
pub fn groth16_prove_inplace<E: Engine + crate::json_utils::Parser>(
curve_type: &str,
circuit: CircomCircuit<E>,
wtns_file: &str,
Expand Down Expand Up @@ -279,7 +279,7 @@ pub fn groth16_prove(

#[cfg(any(feature = "cuda", feature = "opencl"))]
#[allow(clippy::too_many_arguments)]
pub fn groth16_prove_with_cache(
pub fn groth16_prove_inplace(
curve_type: &str,
circuit: CircomCircuit<Scalar>,
wtns_file: &str,
Expand Down
4 changes: 2 additions & 2 deletions groth16/src/groth16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ mod tests {
}

#[test]
fn groth16_proof_bls12381_with_cache() -> Result<()> {
fn groth16_proof_bls12381_inpace() -> Result<()> {
//1. SRS
let t = std::time::Instant::now();
let setup_result = groth16_setup_inplace("BLS12381", CIRCUIT_FILE_BLS12)?;
Expand Down Expand Up @@ -250,7 +250,7 @@ mod tests {
);

#[test]
fn groth16_proof_bls12381_with_cache() -> Result<()> {
fn groth16_proof_bls12381_inplace() -> Result<()> {
let _ = env_logger::try_init();
//1. SRS
let t = std::time::Instant::now();
Expand Down

0 comments on commit e4a3470

Please sign in to comment.