Struct snarkvm_algorithms::snark::gm17::Proof [−][src]
pub struct Proof<E: PairingEngine> { pub a: E::G1Affine, pub b: E::G2Affine, pub c: E::G1Affine, // some fields omitted }
Expand description
A proof in the GM17 SNARK.
Fields
a: E::G1Affine
b: E::G2Affine
c: E::G1Affine
Implementations
impl<E: PairingEngine> Proof<E>
[src]
impl<E: PairingEngine> Proof<E>
[src]pub fn write_compressed<W: Write>(&self, writer: W) -> IoResult<()>
[src]
pub fn write_compressed<W: Write>(&self, writer: W) -> IoResult<()>
[src]Serialize the proof into bytes in compressed form, for storage on disk or transmission over the network.
pub fn write_uncompressed<W: Write>(&self, writer: W) -> IoResult<()>
[src]
pub fn write_uncompressed<W: Write>(&self, writer: W) -> IoResult<()>
[src]Serialize the proof into bytes in uncompressed form, for storage on disk or transmission over the network.
pub fn read_compressed<R: Read>(reader: R) -> IoResult<Self>
[src]
pub fn read_compressed<R: Read>(reader: R) -> IoResult<Self>
[src]Deserialize the proof from compressed bytes.
pub fn read_uncompressed<R: Read>(reader: R) -> IoResult<Self>
[src]
pub fn read_uncompressed<R: Read>(reader: R) -> IoResult<Self>
[src]Deserialize the proof from uncompressed bytes.
pub fn read<R: Read>(reader: R) -> IoResult<Self>
[src]
pub fn read<R: Read>(reader: R) -> IoResult<Self>
[src]Deserialize a proof from compressed or uncompressed bytes.
pub fn compressed_proof_size() -> IoResult<usize>
[src]
pub fn compressed_proof_size() -> IoResult<usize>
[src]Returns the number of bytes in a compressed proof serialization.
pub fn uncompressed_proof_size() -> IoResult<usize>
[src]
pub fn uncompressed_proof_size() -> IoResult<usize>
[src]Returns the number of bytes in an uncompressed proof serialization.
Trait Implementations
impl<E: PairingEngine> CanonicalDeserialize for Proof<E>
[src]
impl<E: PairingEngine> CanonicalDeserialize for Proof<E>
[src]fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]Reads Self
from reader
.
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
[src]
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
[src]Reads Self
from reader
without compression.
impl<E: PairingEngine> CanonicalSerialize for Proof<E>
[src]
impl<E: PairingEngine> CanonicalSerialize for Proof<E>
[src]fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]Serializes self
into writer
.
fn serialized_size(&self) -> usize
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
[src]Serializes self
into writer
without compression.
fn uncompressed_size(&self) -> usize
[src]
impl<E: Clone + PairingEngine> Clone for Proof<E> where
E::G1Affine: Clone,
E::G2Affine: Clone,
E::G1Affine: Clone,
[src]
impl<E: Clone + PairingEngine> Clone for Proof<E> where
E::G1Affine: Clone,
E::G2Affine: Clone,
E::G1Affine: Clone,
[src]impl<E: Debug + PairingEngine> Debug for Proof<E> where
E::G1Affine: Debug,
E::G2Affine: Debug,
E::G1Affine: Debug,
[src]
impl<E: Debug + PairingEngine> Debug for Proof<E> where
E::G1Affine: Debug,
E::G2Affine: Debug,
E::G1Affine: Debug,
[src]impl<E: PairingEngine> Default for Proof<E>
[src]
impl<E: PairingEngine> Default for Proof<E>
[src]impl<E: PairingEngine> FromBytes for Proof<E>
[src]
impl<E: PairingEngine> FromBytes for Proof<E>
[src]impl<E: PairingEngine> PartialEq<Proof<E>> for Proof<E>
[src]
impl<E: PairingEngine> PartialEq<Proof<E>> for Proof<E>
[src]Auto Trait Implementations
impl<E> RefUnwindSafe for Proof<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<E as PairingEngine>::G2Affine: RefUnwindSafe,
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<E as PairingEngine>::G2Affine: RefUnwindSafe,
impl<E> Send for Proof<E>
impl<E> Sync for Proof<E>
impl<E> Unpin for Proof<E> where
<E as PairingEngine>::G1Affine: Unpin,
<E as PairingEngine>::G2Affine: Unpin,
<E as PairingEngine>::G1Affine: Unpin,
<E as PairingEngine>::G2Affine: Unpin,
impl<E> UnwindSafe for Proof<E> where
<E as PairingEngine>::G1Affine: UnwindSafe,
<E as PairingEngine>::G2Affine: UnwindSafe,
<E as PairingEngine>::G1Affine: UnwindSafe,
<E as PairingEngine>::G2Affine: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,