mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-04 06:43:07 +00:00
Merge pull request #1416 from AdventureSeeker987/main
chore: fix some comment typos
This commit is contained in:
commit
56e8395694
@ -117,8 +117,8 @@ fn run_bn_frob_fp12(f: Fp12<BN254>, n: usize) -> Fp12<BN254> {
|
|||||||
segment: BnPairing,
|
segment: BnPairing,
|
||||||
memory: vec![(ptr, f.to_stack().to_vec())],
|
memory: vec![(ptr, f.to_stack().to_vec())],
|
||||||
};
|
};
|
||||||
let interpeter: Interpreter = run_interpreter_with_memory(setup).unwrap();
|
let interpreter: Interpreter = run_interpreter_with_memory(setup).unwrap();
|
||||||
let output: Vec<U256> = interpeter.extract_kernel_memory(BnPairing, ptr..ptr + 12);
|
let output: Vec<U256> = interpreter.extract_kernel_memory(BnPairing, ptr..ptr + 12);
|
||||||
Fp12::<BN254>::from_stack(&output)
|
Fp12::<BN254>::from_stack(&output)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,7 @@ fn prepare_test<T>(
|
|||||||
// Load the message into the kernel.
|
// Load the message into the kernel.
|
||||||
let interpreter_setup = make_interpreter_setup(message, hash_fn_label, hash_input_virt);
|
let interpreter_setup = make_interpreter_setup(message, hash_fn_label, hash_input_virt);
|
||||||
|
|
||||||
// Run the interpeter
|
// Run the interpreter
|
||||||
let result = run_interpreter_with_memory(interpreter_setup).unwrap();
|
let result = run_interpreter_with_memory(interpreter_setup).unwrap();
|
||||||
|
|
||||||
Ok((expected, result.stack().to_vec()))
|
Ok((expected, result.stack().to_vec()))
|
||||||
|
|||||||
@ -66,7 +66,7 @@ pub trait Stark<F: RichField + Extendable<D>, const D: usize>: Sync {
|
|||||||
|
|
||||||
/// Evaluate constraints at a vector of points from the degree `D` extension field. This is like
|
/// Evaluate constraints at a vector of points from the degree `D` extension field. This is like
|
||||||
/// `eval_ext`, except in the context of a recursive circuit.
|
/// `eval_ext`, except in the context of a recursive circuit.
|
||||||
/// Note: constraints must be added through`yeld_constr.constraint(builder, constraint)` in the
|
/// Note: constraints must be added through`yield_constr.constraint(builder, constraint)` in the
|
||||||
/// same order as they are given in `eval_packed_generic`.
|
/// same order as they are given in `eval_packed_generic`.
|
||||||
fn eval_ext_circuit(
|
fn eval_ext_circuit(
|
||||||
&self,
|
&self,
|
||||||
|
|||||||
@ -66,7 +66,7 @@ pub trait Stark<F: RichField + Extendable<D>, const D: usize>: Sync {
|
|||||||
|
|
||||||
/// Evaluate constraints at a vector of points from the degree `D` extension field. This is like
|
/// Evaluate constraints at a vector of points from the degree `D` extension field. This is like
|
||||||
/// `eval_ext`, except in the context of a recursive circuit.
|
/// `eval_ext`, except in the context of a recursive circuit.
|
||||||
/// Note: constraints must be added through`yeld_constr.constraint(builder, constraint)` in the
|
/// Note: constraints must be added through`yield_constr.constraint(builder, constraint)` in the
|
||||||
/// same order as they are given in `eval_packed_generic`.
|
/// same order as they are given in `eval_packed_generic`.
|
||||||
fn eval_ext_circuit(
|
fn eval_ext_circuit(
|
||||||
&self,
|
&self,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user