Skip to content

basefold verifier for one matrix #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
2 changes: 1 addition & 1 deletion src/arithmetics/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::tower_verifier::binding::PointAndEvalVariable;
use crate::zkvm_verifier::binding::ZKVMOpcodeProofInputVariable;
use ceno_mle::expression::{Expression, Fixed, Instance};
use ceno_mle::{Expression, Fixed, Instance};
use ceno_zkvm::structs::{ChallengeId, WitnessId};
use ff_ext::ExtensionField;
use ff_ext::{BabyBearExt4, SmallField};
Expand Down
11 changes: 1 addition & 10 deletions src/basefold_verifier/basefold.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use mpcs::BasefoldProof as InnerBasefoldProof;
use mpcs::basefold::BasefoldProof as InnerBasefoldProof;
use openvm_native_compiler::{asm::AsmConfig, prelude::*};
use openvm_native_recursion::hints::{Hintable, VecAutoHintable};
use openvm_stark_sdk::p3_baby_bear::BabyBear;
Expand Down Expand Up @@ -26,7 +26,6 @@ pub type HashDigest = MmcsCommitment;
pub struct BasefoldCommitment {
pub commit: HashDigest,
pub log2_max_codeword_size: usize,
pub trivial_commits: Vec<(usize, HashDigest)>,
}

use mpcs::BasefoldCommitment as InnerBasefoldCommitment;
Expand All @@ -38,11 +37,6 @@ impl From<InnerBasefoldCommitment<E>> for BasefoldCommitment {
value: value.commit().into(),
},
log2_max_codeword_size: value.log2_max_codeword_size,
trivial_commits: value
.trivial_commits
.into_iter()
.map(|(i, c)| (i, c.into()))
.collect(),
}
}
}
Expand All @@ -53,12 +47,10 @@ impl Hintable<InnerConfig> for BasefoldCommitment {
fn read(builder: &mut Builder<InnerConfig>) -> Self::HintVariable {
let commit = HashDigest::read(builder);
let log2_max_codeword_size = Usize::Var(usize::read(builder));
// let trivial_commits = Vec::<HashDigest>::read(builder);

BasefoldCommitmentVariable {
commit,
log2_max_codeword_size,
// trivial_commits,
}
}

Expand All @@ -68,7 +60,6 @@ impl Hintable<InnerConfig> for BasefoldCommitment {
stream.extend(<usize as Hintable<InnerConfig>>::write(
&self.log2_max_codeword_size,
));
// stream.extend(self.trivial_commits.write());
stream
}
}
Expand Down
Loading