Struct snarkvm_compiler::Certificate
source · [−]pub struct Certificate<N: Network> { /* private fields */ }
Implementations
sourceimpl<N: Network> Certificate<N>
impl<N: Network> Certificate<N>
sourcepub fn certify(
function_name: &Identifier<N>,
proving_key: &ProvingKey<N>,
verifying_key: &VerifyingKey<N>
) -> Result<Certificate<N>>
pub fn certify(
function_name: &Identifier<N>,
proving_key: &ProvingKey<N>,
verifying_key: &VerifyingKey<N>
) -> Result<Certificate<N>>
Returns the certificate from the proving and verifying key.
sourcepub fn verify(
&self,
function_name: &Identifier<N>,
assignment: &Assignment<N::Field>,
verifying_key: &VerifyingKey<N>
) -> bool
pub fn verify(
&self,
function_name: &Identifier<N>,
assignment: &Assignment<N::Field>,
verifying_key: &VerifyingKey<N>
) -> bool
Returns the certificate from the proving and verifying key.
Trait Implementations
sourceimpl<N: Clone + Network> Clone for Certificate<N> where
N::PairingCurve: Clone,
impl<N: Clone + Network> Clone for Certificate<N> where
N::PairingCurve: Clone,
sourcefn clone(&self) -> Certificate<N>
fn clone(&self) -> Certificate<N>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<N: Network> Debug for Certificate<N>
impl<N: Network> Debug for Certificate<N>
sourceimpl<N: Network> Deref for Certificate<N>
impl<N: Network> Deref for Certificate<N>
type Target = Certificate<<N as Environment>::PairingCurve>
type Target = Certificate<<N as Environment>::PairingCurve>
The resulting type after dereferencing.
sourceimpl<'de, N: Network> Deserialize<'de> for Certificate<N>
impl<'de, N: Network> Deserialize<'de> for Certificate<N>
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the certificate from a string or bytes.
sourceimpl<N: Network> Display for Certificate<N>
impl<N: Network> Display for Certificate<N>
sourceimpl<N: Network> FromBytes for Certificate<N>
impl<N: Network> FromBytes for Certificate<N>
sourceimpl<N: Network> FromStr for Certificate<N>
impl<N: Network> FromStr for Certificate<N>
sourceimpl<N: Network> Parser for Certificate<N>
impl<N: Network> Parser for Certificate<N>
sourceimpl<N: PartialEq + Network> PartialEq<Certificate<N>> for Certificate<N> where
N::PairingCurve: PartialEq,
impl<N: PartialEq + Network> PartialEq<Certificate<N>> for Certificate<N> where
N::PairingCurve: PartialEq,
sourcefn eq(&self, other: &Certificate<N>) -> bool
fn eq(&self, other: &Certificate<N>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl<N: Network> Serialize for Certificate<N>
impl<N: Network> Serialize for Certificate<N>
sourceimpl<N: Network> ToBytes for Certificate<N>
impl<N: Network> ToBytes for Certificate<N>
impl<N: Eq + Network> Eq for Certificate<N> where
N::PairingCurve: Eq,
impl<N: Network> StructuralEq for Certificate<N>
impl<N: Network> StructuralPartialEq for Certificate<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for Certificate<N> where
<N as Environment>::Field: RefUnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe,
impl<N> Send for Certificate<N>
impl<N> Sync for Certificate<N>
impl<N> Unpin for Certificate<N> where
<N as Environment>::Field: Unpin,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: Unpin,
impl<N> UnwindSafe for Certificate<N> where
<N as Environment>::Field: UnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more