Struct kimchi::precomputed_srs::TestSRS
source · pub struct TestSRS<G> {
pub g: Vec<G>,
pub h: G,
pub lagrange_bases: HashMap<usize, Vec<PolyComm<G>>>,
}
Expand description
A clone of the SRS struct that is used for serialization, in a test-optimised way.
NB: Serialization of these fields is unchecked (and fast). If you want to make sure the data is checked on deserialization, this code must be changed; or you can check it externally.
Fields§
§g: Vec<G>
The vector of group elements for committing to polynomials in coefficient form.
h: G
A group element used for blinding commitments
lagrange_bases: HashMap<usize, Vec<PolyComm<G>>>
Commitments to Lagrange bases, per domain size
Trait Implementations§
source§impl<'de, G> Deserialize<'de> for TestSRS<G>where
G: CanonicalDeserialize + CanonicalSerialize,
impl<'de, G> Deserialize<'de> for TestSRS<G>where G: CanonicalDeserialize + CanonicalSerialize,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<G: PartialEq> PartialEq<TestSRS<G>> for TestSRS<G>
impl<G: PartialEq> PartialEq<TestSRS<G>> for TestSRS<G>
impl<G: Eq> Eq for TestSRS<G>
impl<G> StructuralEq for TestSRS<G>
impl<G> StructuralPartialEq for TestSRS<G>
Auto Trait Implementations§
impl<G> RefUnwindSafe for TestSRS<G>where G: RefUnwindSafe,
impl<G> Send for TestSRS<G>where G: Send,
impl<G> Sync for TestSRS<G>where G: Sync,
impl<G> Unpin for TestSRS<G>where G: Unpin,
impl<G> UnwindSafe for TestSRS<G>where G: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more