Skip to main content

Verifier

Struct Verifier 

Source
pub struct Verifier {}
Expand description

Party that wants to check that prover has some credentials provided by issuer.

Implementations§

Source§

impl Verifier

Source

pub fn new_sub_proof_request_builder() -> IndyCryptoResult<SubProofRequestBuilder>

Creates and returns sub proof request entity builder. Part of proof request related to a particular schema-key.

The purpose of sub proof request builder is building of sub proof request entity that represents requested attributes and predicates.

§Example
use indy_crypto::cl::verifier::Verifier;

let mut sub_proof_request_builder = Verifier::new_sub_proof_request_builder().unwrap();
sub_proof_request_builder.add_revealed_attr("name").unwrap();
sub_proof_request_builder.add_predicate("age", "GE", 18).unwrap();
let _sub_proof_request = sub_proof_request_builder.finalize().unwrap();
Source

pub fn new_proof_verifier() -> IndyCryptoResult<ProofVerifier>

Creates and returns proof verifier.

The purpose of proof verifier is check proof provided by Prover.

§Example
use indy_crypto::cl::verifier::Verifier;

let _proof_verifier = Verifier::new_proof_verifier().unwrap();

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.