Skip to content

Commit

Permalink
chore: fmt + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
duguorong009 committed Apr 11, 2024
1 parent 7c595ec commit 43e2ceb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion halo2_proofs/src/plonk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod verifier {

pub use keygen::{keygen_pk, keygen_pk_custom, keygen_vk, keygen_vk_custom};

pub use prover::{create_proof, create_proof_with_engine, create_proof_custom_with_engine};
pub use prover::{create_proof, create_proof_custom_with_engine, create_proof_with_engine};
pub use verifier::verify_proof;

pub use error::Error;
Expand Down
6 changes: 4 additions & 2 deletions halo2_proofs/src/plonk/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ pub fn create_proof_with_engine<
where
Scheme::Scalar: WithSmallOrderMulGroup<3> + FromUniformBytes<64>,
{
create_proof_custom_with_engine::<Scheme, P, E, R, T, ConcreteCircuit, M>(engine, params, pk, true, circuits, instances, rng, transcript)
create_proof_custom_with_engine::<Scheme, P, E, R, T, ConcreteCircuit, M>(
engine, params, pk, true, circuits, instances, rng, transcript,
)
}

/// This creates a proof for the provided `circuit` when given the public
Expand Down Expand Up @@ -241,7 +243,7 @@ fn test_create_proof_custom() {
.expect("keygen_pk_custom should not fail");
let mut transcript = Blake2bWrite::<_, _, Challenge255<_>>::init(vec![]);
let engine = PlonkEngineConfig::build_default();

create_proof_custom_with_engine::<KZGCommitmentScheme<_>, ProverSHPLONK<_>, _, _, _, _, _>(
engine,
&params,
Expand Down

0 comments on commit 43e2ceb

Please sign in to comment.