mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 14:23:07 +00:00
rename
This commit is contained in:
parent
975a35c3e0
commit
f3f3641fb5
@ -41,7 +41,7 @@ fn main() -> Result<()> {
|
||||
pw.set_target(initial_a, F::ZERO);
|
||||
pw.set_target(initial_b, F::ONE);
|
||||
|
||||
let data = builder.build_deterministic::<C>();
|
||||
let data = builder.build_without_randomizing::<C>();
|
||||
|
||||
let common_circuit_data_serialized = serde_json::to_string(&data.common).unwrap();
|
||||
fs::write("common_circuit_data.json", common_circuit_data_serialized)
|
||||
|
||||
@ -740,7 +740,7 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
||||
/// Builds a "full circuit", with both prover and verifier data.
|
||||
fn build_inner<C: GenericConfig<D, F = F>>(
|
||||
mut self,
|
||||
deterministic: bool,
|
||||
randomize_unused_pi_wires: bool,
|
||||
) -> CircuitData<F, C, D>
|
||||
where
|
||||
[(); C::HCO::WIDTH]:,
|
||||
@ -765,7 +765,7 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
||||
{
|
||||
self.connect(hash_part, Target::wire(pi_gate, wire))
|
||||
}
|
||||
if !deterministic {
|
||||
if randomize_unused_pi_wires {
|
||||
self.randomize_unused_pi_wires(pi_gate);
|
||||
}
|
||||
|
||||
@ -956,16 +956,16 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
||||
[(); C::HCO::WIDTH]:,
|
||||
[(); C::HCI::WIDTH]:,
|
||||
{
|
||||
self.build_inner(false)
|
||||
self.build_inner(true)
|
||||
}
|
||||
|
||||
/// Build without randomizing PI wires
|
||||
pub fn build_deterministic<C: GenericConfig<D, F = F>>(self) -> CircuitData<F, C, D>
|
||||
pub fn build_without_randomizing<C: GenericConfig<D, F = F>>(self) -> CircuitData<F, C, D>
|
||||
where
|
||||
[(); C::HCO::WIDTH]:,
|
||||
[(); C::HCI::WIDTH]:,
|
||||
{
|
||||
self.build_inner(true)
|
||||
self.build_inner(false)
|
||||
}
|
||||
|
||||
/// Builds a "prover circuit", with data needed to generate proofs but not verify them.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user