mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 23:33:07 +00:00
Merge pull request #539 from proxima-one/make_recover_degree_bits_public
Make `recover_degree_bits` public
This commit is contained in:
commit
90f6d07f72
@ -33,7 +33,7 @@ pub struct StarkProof<F: RichField + Extendable<D>, C: GenericConfig<D, F = F>,
|
|||||||
|
|
||||||
impl<F: RichField + Extendable<D>, C: GenericConfig<D, F = F>, const D: usize> StarkProof<F, C, D> {
|
impl<F: RichField + Extendable<D>, C: GenericConfig<D, F = F>, const D: usize> StarkProof<F, C, D> {
|
||||||
/// Recover the length of the trace from a STARK proof and a STARK config.
|
/// Recover the length of the trace from a STARK proof and a STARK config.
|
||||||
pub(crate) fn recover_degree_bits(&self, config: &StarkConfig) -> usize {
|
pub fn recover_degree_bits(&self, config: &StarkConfig) -> usize {
|
||||||
let initial_merkle_proof = &self.opening_proof.query_round_proofs[0]
|
let initial_merkle_proof = &self.opening_proof.query_round_proofs[0]
|
||||||
.initial_trees_proof
|
.initial_trees_proof
|
||||||
.evals_proofs[0]
|
.evals_proofs[0]
|
||||||
@ -53,7 +53,7 @@ pub struct StarkProofTarget<const D: usize> {
|
|||||||
|
|
||||||
impl<const D: usize> StarkProofTarget<D> {
|
impl<const D: usize> StarkProofTarget<D> {
|
||||||
/// Recover the length of the trace from a STARK proof and a STARK config.
|
/// Recover the length of the trace from a STARK proof and a STARK config.
|
||||||
pub(crate) fn recover_degree_bits(&self, config: &StarkConfig) -> usize {
|
pub fn recover_degree_bits(&self, config: &StarkConfig) -> usize {
|
||||||
let initial_merkle_proof = &self.opening_proof.query_round_proofs[0]
|
let initial_merkle_proof = &self.opening_proof.query_round_proofs[0]
|
||||||
.initial_trees_proof
|
.initial_trees_proof
|
||||||
.evals_proofs[0]
|
.evals_proofs[0]
|
||||||
|
|||||||
@ -61,6 +61,8 @@ 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
|
||||||
|
/// same order as they are given in `eval_packed_generic`.
|
||||||
fn eval_ext_recursively(
|
fn eval_ext_recursively(
|
||||||
&self,
|
&self,
|
||||||
builder: &mut CircuitBuilder<F, D>,
|
builder: &mut CircuitBuilder<F, D>,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user