mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-11 02:03:07 +00:00
Comment
This commit is contained in:
parent
0053a02119
commit
8c96b8d2db
@ -40,6 +40,8 @@ pub(crate) struct AllProofChallenges<F: RichField + Extendable<D>, const D: usiz
|
||||
}
|
||||
|
||||
pub(crate) struct AllChallengerState<F: RichField + Extendable<D>, const D: usize> {
|
||||
/// Sponge state of the challenger before starting each proof,
|
||||
/// along with the final state after all proofs are done. This final state isn't strictly needed.
|
||||
pub states: [[F; SPONGE_WIDTH]; NUM_TABLES + 1],
|
||||
pub ctl_challenges: GrandProductChallengeSet<F>,
|
||||
}
|
||||
|
||||
@ -78,12 +78,6 @@ impl<F: RichField> GenericHashOut<F> for HashOut<F> {
|
||||
fn to_vec(&self) -> Vec<F> {
|
||||
self.elements.to_vec()
|
||||
}
|
||||
|
||||
fn from_vec(v: &[F]) -> Self {
|
||||
Self {
|
||||
elements: v.try_into().unwrap(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<F: Field> Default for HashOut<F> {
|
||||
@ -154,10 +148,6 @@ impl<F: RichField, const N: usize> GenericHashOut<F> for BytesHash<N> {
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn from_vec(_v: &[F]) -> Self {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
impl<const N: usize> Serialize for BytesHash<N> {
|
||||
|
||||
@ -20,7 +20,6 @@ pub trait GenericHashOut<F: RichField>:
|
||||
fn from_bytes(bytes: &[u8]) -> Self;
|
||||
|
||||
fn to_vec(&self) -> Vec<F>;
|
||||
fn from_vec(v: &[F]) -> Self;
|
||||
}
|
||||
|
||||
/// Trait for hash functions.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user