[][src]Struct zei::core::XProofs

pub struct XProofs {
    pub range_proof: RangeProof,
    pub equality_proof: EqualityProof,
    pub asset_proof: BatchEqualityProof,
}

Proove Me Baby One More Time

Fields

range_proof: RangeProof

Proove that amounts are non zero and within range

equality_proof: EqualityProof

Proove that total amounts in-out are equal

asset_proof: BatchEqualityProof

Proove that asset types havent mixed

Methods

impl XProofs[src]

pub fn proove(
    inputs: &Vec<OpenAssetOut>,
    outputs: &Vec<OpenAssetOut>
) -> Result<XProofs, ZeiError>
[src]

Create Proofs

pub fn proove_internal(
    &mut self,
    inputs: &Vec<OpenAssetOut>,
    outputs: &Vec<OpenAssetOut>
) -> Result<(), ZeiError>
[src]

Create Proofs

pub fn verify(
    &self,
    inputs: &Vec<AssetOut>,
    outputs: &Vec<AssetOut>
) -> Result<(), ZeiError>
[src]

pub fn verify_step_one(
    &self,
    inputs: &Vec<AssetOut>,
    outputs: &Vec<AssetOut>
) -> Result<(), ZeiError>
[src]

Equality Proof

pub fn verify_step_two(
    &self,
    inputs: &Vec<AssetOut>,
    outputs: &Vec<AssetOut>
) -> Result<(), ZeiError>
[src]

Verify Batch Equality Proof

Trait Implementations

impl Default for XProofs[src]

impl Writeable for XProofs[src]

impl Readable for XProofs[src]

Auto Trait Implementations

impl Send for XProofs

impl Sync for XProofs

impl Unpin for XProofs

impl UnwindSafe for XProofs

impl RefUnwindSafe for XProofs

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

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