Struct Prover

Source
pub struct Prover {}

Implementations§

Source§

impl Prover

Source

pub fn create_master_secret( wallet_handle: IndyHandle, master_secret_id: Option<&str>, ) -> Result<String, ErrorCode>

Source

pub fn create_master_secret_timeout( wallet_handle: IndyHandle, master_secret_id: Option<&str>, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn create_master_secret_async<F>( wallet_handle: IndyHandle, master_secret_id: Option<&str>, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn get_credential( wallet_handle: IndyHandle, cred_id: &str, ) -> Result<String, ErrorCode>

Source

pub fn get_credential_timeout( wallet_handle: IndyHandle, cred_id: &str, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn get_credential_async<F>( wallet_handle: IndyHandle, cred_id: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn create_credential_req( wallet_handle: IndyHandle, prover_did: &str, cred_offer_json: &str, cred_def_json: &str, master_secret_id: &str, ) -> Result<(String, String), ErrorCode>

Source

pub fn create_credential_req_timeout( wallet_handle: IndyHandle, prover_did: &str, cred_offer_json: &str, cred_def_json: &str, master_secret_id: &str, timeout: Duration, ) -> Result<(String, String), ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn create_credential_req_async<F>( wallet_handle: IndyHandle, prover_did: &str, cred_offer_json: &str, cred_def_json: &str, master_secret_id: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn store_credential( wallet_handle: IndyHandle, cred_id: Option<&str>, cred_req_metadata_json: &str, cred_json: &str, cred_def_json: &str, rev_reg_def_json: Option<&str>, ) -> Result<String, ErrorCode>

Source

pub fn store_credential_timeout( wallet_handle: IndyHandle, cred_id: Option<&str>, cred_req_metadata_json: &str, cred_json: &str, cred_def_json: &str, rev_reg_def_json: Option<&str>, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn store_credential_async<F>( wallet_handle: IndyHandle, cred_id: Option<&str>, cred_req_metadata_json: &str, cred_json: &str, cred_def_json: &str, rev_reg_def_json: Option<&str>, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn get_credentials( wallet_handle: IndyHandle, filter_json: Option<&str>, ) -> Result<String, ErrorCode>

Source

pub fn get_credentials_timeout( wallet_handle: IndyHandle, filter_json: Option<&str>, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn get_credentials_async<F>( wallet_handle: IndyHandle, filter_json: Option<&str>, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn search_credentials( wallet_handle: IndyHandle, query_json: Option<&str>, ) -> Result<(i32, usize), ErrorCode>

Source

pub fn search_credentials_timeout( wallet_handle: IndyHandle, query_json: Option<&str>, timeout: Duration, ) -> Result<(i32, usize), ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn search_credentials_async<F>( wallet_handle: IndyHandle, query_json: Option<&str>, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, i32, usize) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn fetch_credentials( search_handle: IndyHandle, count: usize, ) -> Result<String, ErrorCode>

Source

pub fn fetch_credentials_timeout( search_handle: IndyHandle, count: usize, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn fetch_credentials_async<F>( search_handle: IndyHandle, count: usize, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn close_credentials_search_timeout( search_handle: IndyHandle, timeout: Duration, ) -> Result<(), ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn close_credentials_search_async<F>( search_handle: IndyHandle, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn get_credentials_for_proof_req( wallet_handle: IndyHandle, proof_request_json: &str, ) -> Result<String, ErrorCode>

Source

pub fn get_credentials_for_proof_req_timeout( wallet_handle: IndyHandle, proof_request_json: &str, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn get_credentials_for_proof_req_async<F>( wallet_handle: IndyHandle, proof_request_json: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn search_credentials_for_proof_req( wallet_handle: IndyHandle, proof_request_json: &str, extra_query_json: Option<&str>, ) -> Result<i32, ErrorCode>

Source

pub fn search_credentials_for_proof_req_timeout( wallet_handle: IndyHandle, proof_request_json: &str, extra_query_json: Option<&str>, timeout: Duration, ) -> Result<i32, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn search_credentials_for_proof_req_async<F>( wallet_handle: IndyHandle, proof_request_json: &str, extra_query_json: Option<&str>, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, i32) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn _fetch_credentials_for_proof_req( search_handle: IndyHandle, item_referent: &str, count: usize, ) -> Result<String, ErrorCode>

Source

pub fn _fetch_credentials_for_proof_req_timeout( search_handle: IndyHandle, item_referent: &str, count: usize, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn _fetch_credentials_for_proof_req_async<F>( search_handle: IndyHandle, item_referent: &str, count: usize, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn _close_credentials_search_for_proof_req( search_handle: IndyHandle, ) -> Result<(), ErrorCode>

Source

pub fn _close_credentials_search_for_proof_req_timeout( search_handle: IndyHandle, timeout: Duration, ) -> Result<(), ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn _close_credentials_search_for_proof_req_async<F>( search_handle: IndyHandle, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn create_proof( wallet_handle: IndyHandle, proof_req_json: &str, requested_credentials_json: &str, master_secret_id: &str, schemas_json: &str, credential_defs_json: &str, rev_states_json: &str, ) -> Result<String, ErrorCode>

Source

pub fn create_proof_timeout( wallet_handle: IndyHandle, proof_req_json: &str, requested_credentials_json: &str, master_secret_id: &str, schemas_json: &str, credential_defs_json: &str, rev_states_json: &str, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn create_proof_async<F>( wallet_handle: IndyHandle, proof_req_json: &str, requested_credentials_json: &str, master_secret_id: &str, schemas_json: &str, credential_defs_json: &str, rev_states_json: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result

Auto Trait Implementations§

§

impl Freeze for Prover

§

impl RefUnwindSafe for Prover

§

impl Send for Prover

§

impl Sync for Prover

§

impl Unpin for Prover

§

impl UnwindSafe for Prover

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.