Struct ark_poly_commit::ipa_pc::UniversalParams
source · pub struct UniversalParams<G: AffineRepr> {
pub comm_key: Vec<G>,
pub h: G,
pub s: G,
}
Expand description
UniversalParams
are the universal parameters for the inner product arg scheme.
Fields§
§comm_key: Vec<G>
The key used to commit to polynomials.
h: G
Some group generator.
s: G
Some group generator specifically used for hiding.
Trait Implementations§
source§impl<G: AffineRepr> CanonicalDeserialize for UniversalParams<G>
impl<G: AffineRepr> CanonicalDeserialize for UniversalParams<G>
source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where R: Read,
fn deserialize_compressed_unchecked<R>( reader: R ) -> Result<Self, SerializationError>where R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where R: Read,
fn deserialize_uncompressed_unchecked<R>( reader: R ) -> Result<Self, SerializationError>where R: Read,
source§impl<G: AffineRepr> CanonicalSerialize for UniversalParams<G>
impl<G: AffineRepr> CanonicalSerialize for UniversalParams<G>
source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,
fn uncompressed_size(&self) -> usize
source§impl<G: AffineRepr> Clone for UniversalParams<G>
impl<G: AffineRepr> Clone for UniversalParams<G>
source§impl<G: AffineRepr> Debug for UniversalParams<G>
impl<G: AffineRepr> Debug for UniversalParams<G>
source§impl<G: AffineRepr> Default for UniversalParams<G>
impl<G: AffineRepr> Default for UniversalParams<G>
source§impl<G: AffineRepr> PCUniversalParams for UniversalParams<G>
impl<G: AffineRepr> PCUniversalParams for UniversalParams<G>
source§fn max_degree(&self) -> usize
fn max_degree(&self) -> usize
Outputs the maximum degree supported by the committer key.
source§impl<G: AffineRepr> Valid for UniversalParams<G>
impl<G: AffineRepr> Valid for UniversalParams<G>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>where Self: 'a,
Auto Trait Implementations§
impl<G> RefUnwindSafe for UniversalParams<G>where G: RefUnwindSafe,
impl<G> Send for UniversalParams<G>
impl<G> Sync for UniversalParams<G>
impl<G> Unpin for UniversalParams<G>where G: Unpin,
impl<G> UnwindSafe for UniversalParams<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