pub struct Certificate<E: PairingEngine> {
pub pc_proof: BatchLCProof<E>,
}
Expand description
A certificate for the verifying key.
Fields§
§pc_proof: BatchLCProof<E>
An evaluation proof from the polynomial commitment.
Implementations§
Source§impl<E: PairingEngine> Certificate<E>
impl<E: PairingEngine> Certificate<E>
Sourcepub fn new(pc_proof: BatchLCProof<E>) -> Self
pub fn new(pc_proof: BatchLCProof<E>) -> Self
Construct a new certificate.
Trait Implementations§
Source§impl<E: PairingEngine> CanonicalDeserialize for Certificate<E>
impl<E: PairingEngine> CanonicalDeserialize for Certificate<E>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
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<E: PairingEngine> CanonicalSerialize for Certificate<E>
impl<E: PairingEngine> CanonicalSerialize for Certificate<E>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
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<E: Clone + PairingEngine> Clone for Certificate<E>
impl<E: Clone + PairingEngine> Clone for Certificate<E>
Source§fn clone(&self) -> Certificate<E>
fn clone(&self) -> Certificate<E>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<E: Debug + PairingEngine> Debug for Certificate<E>
impl<E: Debug + PairingEngine> Debug for Certificate<E>
Source§impl<E: PairingEngine> FromBytes for Certificate<E>
impl<E: PairingEngine> FromBytes for Certificate<E>
Source§impl<E: PartialEq + PairingEngine> PartialEq for Certificate<E>
impl<E: PartialEq + PairingEngine> PartialEq for Certificate<E>
Source§impl<E: PairingEngine> ToBytes for Certificate<E>
impl<E: PairingEngine> ToBytes for Certificate<E>
Source§impl<E: PairingEngine> Valid for Certificate<E>
impl<E: PairingEngine> Valid for Certificate<E>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
impl<E: Eq + PairingEngine> Eq for Certificate<E>
impl<E: PairingEngine> StructuralPartialEq for Certificate<E>
Auto Trait Implementations§
impl<E> Freeze for Certificate<E>
impl<E> RefUnwindSafe for Certificate<E>
impl<E> Send for Certificate<E>
impl<E> Sync for Certificate<E>
impl<E> Unpin for Certificate<E>
impl<E> UnwindSafe for Certificate<E>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.