[][src]Struct indy_crypto::cl::verifier::Verifier

pub struct Verifier {}

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

Methods

impl Verifier
[src]

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();

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

impl Send for Verifier

impl Sync for Verifier

Blanket Implementations

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

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Same for T

Should always be Self