pub struct CircuitVerifyingKey<E: PairingEngine> {
pub circuit_info: CircuitInfo,
pub circuit_commitments: Vec<Commitment<E>>,
pub id: CircuitId,
}
Expand description
Verification key for a specific index (i.e., R1CS matrices).
Fields§
§circuit_info: CircuitInfo
Stores information about the size of the circuit, as well as its defined field.
circuit_commitments: Vec<Commitment<E>>
Commitments to the indexed polynomials.
id: CircuitId
Implementations§
Source§impl<E: PairingEngine> CircuitVerifyingKey<E>
impl<E: PairingEngine> CircuitVerifyingKey<E>
Sourcepub fn iter(&self) -> impl Iterator<Item = &Commitment<E>>
pub fn iter(&self) -> impl Iterator<Item = &Commitment<E>>
Iterate over the commitments to indexed polynomials in self
.
Trait Implementations§
Source§impl<E: PairingEngine> CanonicalDeserialize for CircuitVerifyingKey<E>
impl<E: PairingEngine> CanonicalDeserialize for CircuitVerifyingKey<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 CircuitVerifyingKey<E>
impl<E: PairingEngine> CanonicalSerialize for CircuitVerifyingKey<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 CircuitVerifyingKey<E>
impl<E: Clone + PairingEngine> Clone for CircuitVerifyingKey<E>
Source§fn clone(&self) -> CircuitVerifyingKey<E>
fn clone(&self) -> CircuitVerifyingKey<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 CircuitVerifyingKey<E>
impl<E: Debug + PairingEngine> Debug for CircuitVerifyingKey<E>
Source§impl<'de, E: PairingEngine> Deserialize<'de> for CircuitVerifyingKey<E>
impl<'de, E: PairingEngine> Deserialize<'de> for CircuitVerifyingKey<E>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E: PairingEngine> Display for CircuitVerifyingKey<E>
impl<E: PairingEngine> Display for CircuitVerifyingKey<E>
Source§impl<E: PairingEngine> FromBytes for CircuitVerifyingKey<E>
impl<E: PairingEngine> FromBytes for CircuitVerifyingKey<E>
Source§impl<E: PairingEngine> FromStr for CircuitVerifyingKey<E>
impl<E: PairingEngine> FromStr for CircuitVerifyingKey<E>
Source§impl<E: PairingEngine> Ord for CircuitVerifyingKey<E>
impl<E: PairingEngine> Ord for CircuitVerifyingKey<E>
Source§impl<E: PartialEq + PairingEngine> PartialEq for CircuitVerifyingKey<E>
impl<E: PartialEq + PairingEngine> PartialEq for CircuitVerifyingKey<E>
Source§impl<E: PairingEngine> PartialOrd for CircuitVerifyingKey<E>
impl<E: PairingEngine> PartialOrd for CircuitVerifyingKey<E>
Source§impl<E: PairingEngine> Serialize for CircuitVerifyingKey<E>
impl<E: PairingEngine> Serialize for CircuitVerifyingKey<E>
Source§impl<E: PairingEngine> ToBytes for CircuitVerifyingKey<E>
impl<E: PairingEngine> ToBytes for CircuitVerifyingKey<E>
Source§impl<E: PairingEngine> Valid for CircuitVerifyingKey<E>
impl<E: PairingEngine> Valid for CircuitVerifyingKey<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 CircuitVerifyingKey<E>
impl<E: PairingEngine> StructuralPartialEq for CircuitVerifyingKey<E>
Auto Trait Implementations§
impl<E> Freeze for CircuitVerifyingKey<E>
impl<E> RefUnwindSafe for CircuitVerifyingKey<E>
impl<E> Send for CircuitVerifyingKey<E>
impl<E> Sync for CircuitVerifyingKey<E>
impl<E> Unpin for CircuitVerifyingKey<E>
impl<E> UnwindSafe for CircuitVerifyingKey<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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
fn take_from_value<D>(
value: &mut Value,
field: &str,
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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.