Skip to content
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

feat: circuit types for the constant proof shape case #1311

Merged
merged 6 commits into from
Aug 13, 2024

Conversation

tamirhemo
Copy link
Contributor

No description provided.

@tqn tqn self-requested a review August 13, 2024 00:24
Comment on lines 144 to 184
// impl<'a, SC, A> Witnessable<C> for ShardProofHint<'a, SC, A>
// where
// SC: StarkGenericConfig<
// Pcs = <BabyBearPoseidon2 as StarkGenericConfig>::Pcs,
// Challenge = <BabyBearPoseidon2 as StarkGenericConfig>::Challenge,
// Challenger = <BabyBearPoseidon2 as StarkGenericConfig>::Challenger,
// >,
// ShardCommitment<sp1_core::stark::Com<SC>>: Witnessable<C>,
// A: MachineAir<<SC as StarkGenericConfig>::Val>,
// {
// type WitnessVariable = ShardProofVariable<C>;

// fn read(&self, builder: &mut Builder<C>) -> Self::WitnessVariable {
// let commitment = self.proof.commitment.read(builder);
// let opened_values = self.proof.opened_values.read(builder);
// let opening_proof = self.proof.opening_proof.read(builder);
// let public_values = self.proof.public_values.read(builder);
// // Hopefully these clones are cheap...
// let quotient_data = self.chip_.clone();
// let sorted_idxs = self.sorted_idxs.clone();
// ShardProofVariable {
// commitment,
// opened_values,
// opening_proof,
// public_values,
// quotient_data,
// sorted_idxs,
// }
// }

// fn write(&self) -> Vec<Witness<C>> {
// [
// self.proof.commitment.write(),
// self.proof.opened_values.write(),
// self.proof.opening_proof.write(),
// Witnessable::<C>::write(&self.proof.public_values),
// ]
// .concat()
// }
// }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove this?

@tamirhemo tamirhemo merged commit ea46ded into experimental Aug 13, 2024
5 checks passed
@tamirhemo tamirhemo deleted the tamir/circuit-integration branch August 13, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants