Struct reverie::fieldswitching::preprocessing::Proof[][src]

pub struct Proof<D: Domain, D2: Domain> {
    pub hidden: Vec<Hash>,
    pub random: TreePrf,
    pub preprocessing1: Proof<D>,
    pub preprocessing2: Proof<D2>,
}

Fields

hidden: Vec<Hash>random: TreePrfpreprocessing1: Proof<D>preprocessing2: Proof<D2>

Implementations

impl<D: Domain, D2: Domain> Proof<D, D2>[src]

pub fn new(
    conn_program: Vec<ConnectionInstruction>,
    program1: Arc<Vec<Instruction<D::Scalar>>>,
    program2: Arc<Vec<Instruction<D2::Scalar>>>,
    branches1: Vec<Vec<D::Scalar>>,
    branches2: Vec<Vec<D2::Scalar>>
) -> (Self, PreprocessingOutput<D, D2>)
[src]

pub async fn verify(
    &self,
    conn_program: Vec<ConnectionInstruction>,
    program1: Arc<Vec<Instruction<D::Scalar>>>,
    program2: Arc<Vec<Instruction<D2::Scalar>>>,
    branches1: Vec<Vec<D::Scalar>>,
    branches2: Vec<Vec<D2::Scalar>>
) -> Result<(), String>
[src]

Trait Implementations

impl<D: Clone + Domain, D2: Clone + Domain> Clone for Proof<D, D2>[src]

impl<D: Debug + Domain, D2: Debug + Domain> Debug for Proof<D, D2>[src]

impl<'de, D: Domain, D2: Domain> Deserialize<'de> for Proof<D, D2> where
    D: Deserialize<'de>,
    D2: Deserialize<'de>, 
[src]

impl<D: Domain, D2: Domain> Serialize for Proof<D, D2> where
    D: Serialize,
    D2: Serialize
[src]

Auto Trait Implementations

impl<D, D2> RefUnwindSafe for Proof<D, D2> where
    D: RefUnwindSafe,
    D2: RefUnwindSafe

impl<D, D2> Send for Proof<D, D2>

impl<D, D2> Sync for Proof<D, D2>

impl<D, D2> Unpin for Proof<D, D2> where
    D: Unpin,
    D2: Unpin

impl<D, D2> UnwindSafe for Proof<D, D2> where
    D: UnwindSafe,
    D2: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,