Struct snarkvm_algorithms::snark::marlin::CircuitVerifyingKey
source · 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<CircuitVerifyingKey<E>> for CircuitVerifyingKey<E>
impl<E: PartialEq + PairingEngine> PartialEq<CircuitVerifyingKey<E>> for CircuitVerifyingKey<E>
source§fn eq(&self, other: &CircuitVerifyingKey<E>) -> bool
fn eq(&self, other: &CircuitVerifyingKey<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<E: PairingEngine> PartialOrd<CircuitVerifyingKey<E>> for CircuitVerifyingKey<E>
impl<E: PairingEngine> PartialOrd<CircuitVerifyingKey<E>> for CircuitVerifyingKey<E>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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> ToConstraintField<<E as PairingEngine>::Fq> for CircuitVerifyingKey<E>
impl<E: PairingEngine> ToConstraintField<<E as PairingEngine>::Fq> for CircuitVerifyingKey<E>
fn to_field_elements(&self) -> Result<Vec<E::Fq>, ConstraintFieldError>
source§impl<E: PairingEngine> ToMinimalBits for CircuitVerifyingKey<E>
impl<E: PairingEngine> ToMinimalBits for CircuitVerifyingKey<E>
source§fn to_minimal_bits(&self) -> Vec<bool>
fn to_minimal_bits(&self) -> Vec<bool>
Returns
self
as a minimal boolean array.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> StructuralEq for CircuitVerifyingKey<E>
impl<E: PairingEngine> StructuralPartialEq for CircuitVerifyingKey<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for CircuitVerifyingKey<E>where <E as PairingEngine>::G1Affine: RefUnwindSafe,
impl<E> Send for CircuitVerifyingKey<E>
impl<E> Sync for CircuitVerifyingKey<E>
impl<E> Unpin for CircuitVerifyingKey<E>where <E as PairingEngine>::G1Affine: Unpin,
impl<E> UnwindSafe for CircuitVerifyingKey<E>where <E as PairingEngine>::G1Affine: 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
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>,
§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
Compare self to
key
and return true
if they are equal.