pub struct Prover {}
Implementations§
Source§impl Prover
impl Prover
pub fn create_master_secret( wallet_handle: IndyHandle, master_secret_id: Option<&str>, ) -> Result<String, ErrorCode>
Sourcepub fn create_master_secret_timeout(
wallet_handle: IndyHandle,
master_secret_id: Option<&str>,
timeout: Duration,
) -> Result<String, ErrorCode>
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
Sourcepub fn create_master_secret_async<F>(
wallet_handle: IndyHandle,
master_secret_id: Option<&str>,
closure: F,
) -> ErrorCode
pub fn create_master_secret_async<F>( wallet_handle: IndyHandle, master_secret_id: Option<&str>, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn get_credential( wallet_handle: IndyHandle, cred_id: &str, ) -> Result<String, ErrorCode>
Sourcepub fn get_credential_timeout(
wallet_handle: IndyHandle,
cred_id: &str,
timeout: Duration,
) -> Result<String, ErrorCode>
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
Sourcepub fn get_credential_async<F>(
wallet_handle: IndyHandle,
cred_id: &str,
closure: F,
) -> ErrorCode
pub fn get_credential_async<F>( wallet_handle: IndyHandle, cred_id: &str, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
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>
Sourcepub 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>
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
Sourcepub 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
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
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
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>
Sourcepub 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>
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
Sourcepub 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
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
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn get_credentials( wallet_handle: IndyHandle, filter_json: Option<&str>, ) -> Result<String, ErrorCode>
Sourcepub fn get_credentials_timeout(
wallet_handle: IndyHandle,
filter_json: Option<&str>,
timeout: Duration,
) -> Result<String, ErrorCode>
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
Sourcepub fn get_credentials_async<F>(
wallet_handle: IndyHandle,
filter_json: Option<&str>,
closure: F,
) -> ErrorCode
pub fn get_credentials_async<F>( wallet_handle: IndyHandle, filter_json: Option<&str>, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn search_credentials( wallet_handle: IndyHandle, query_json: Option<&str>, ) -> Result<(i32, usize), ErrorCode>
Sourcepub fn search_credentials_timeout(
wallet_handle: IndyHandle,
query_json: Option<&str>,
timeout: Duration,
) -> Result<(i32, usize), ErrorCode>
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
Sourcepub fn search_credentials_async<F>(
wallet_handle: IndyHandle,
query_json: Option<&str>,
closure: F,
) -> ErrorCode
pub fn search_credentials_async<F>( wallet_handle: IndyHandle, query_json: Option<&str>, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn fetch_credentials( search_handle: IndyHandle, count: usize, ) -> Result<String, ErrorCode>
Sourcepub fn fetch_credentials_timeout(
search_handle: IndyHandle,
count: usize,
timeout: Duration,
) -> Result<String, ErrorCode>
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
Sourcepub fn fetch_credentials_async<F>(
search_handle: IndyHandle,
count: usize,
closure: F,
) -> ErrorCode
pub fn fetch_credentials_async<F>( search_handle: IndyHandle, count: usize, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn close_credentials_search( search_handle: IndyHandle, ) -> Result<(), ErrorCode>
Sourcepub fn close_credentials_search_timeout(
search_handle: IndyHandle,
timeout: Duration,
) -> Result<(), ErrorCode>
pub fn close_credentials_search_timeout( search_handle: IndyHandle, timeout: Duration, ) -> Result<(), ErrorCode>
timeout
- the maximum time this function waits for a response
Sourcepub fn close_credentials_search_async<F>(
search_handle: IndyHandle,
closure: F,
) -> ErrorCode
pub fn close_credentials_search_async<F>( search_handle: IndyHandle, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn get_credentials_for_proof_req( wallet_handle: IndyHandle, proof_request_json: &str, ) -> Result<String, ErrorCode>
Sourcepub fn get_credentials_for_proof_req_timeout(
wallet_handle: IndyHandle,
proof_request_json: &str,
timeout: Duration,
) -> Result<String, ErrorCode>
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
Sourcepub fn get_credentials_for_proof_req_async<F>(
wallet_handle: IndyHandle,
proof_request_json: &str,
closure: F,
) -> ErrorCode
pub fn get_credentials_for_proof_req_async<F>( wallet_handle: IndyHandle, proof_request_json: &str, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn search_credentials_for_proof_req( wallet_handle: IndyHandle, proof_request_json: &str, extra_query_json: Option<&str>, ) -> Result<i32, ErrorCode>
Sourcepub fn search_credentials_for_proof_req_timeout(
wallet_handle: IndyHandle,
proof_request_json: &str,
extra_query_json: Option<&str>,
timeout: Duration,
) -> Result<i32, ErrorCode>
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
Sourcepub fn search_credentials_for_proof_req_async<F>(
wallet_handle: IndyHandle,
proof_request_json: &str,
extra_query_json: Option<&str>,
closure: F,
) -> ErrorCode
pub fn search_credentials_for_proof_req_async<F>( wallet_handle: IndyHandle, proof_request_json: &str, extra_query_json: Option<&str>, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn _fetch_credentials_for_proof_req( search_handle: IndyHandle, item_referent: &str, count: usize, ) -> Result<String, ErrorCode>
Sourcepub fn _fetch_credentials_for_proof_req_timeout(
search_handle: IndyHandle,
item_referent: &str,
count: usize,
timeout: Duration,
) -> Result<String, ErrorCode>
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
Sourcepub fn _fetch_credentials_for_proof_req_async<F>(
search_handle: IndyHandle,
item_referent: &str,
count: usize,
closure: F,
) -> ErrorCode
pub fn _fetch_credentials_for_proof_req_async<F>( search_handle: IndyHandle, item_referent: &str, count: usize, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn _close_credentials_search_for_proof_req( search_handle: IndyHandle, ) -> Result<(), ErrorCode>
Sourcepub fn _close_credentials_search_for_proof_req_timeout(
search_handle: IndyHandle,
timeout: Duration,
) -> Result<(), ErrorCode>
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
Sourcepub fn _close_credentials_search_for_proof_req_async<F>(
search_handle: IndyHandle,
closure: F,
) -> ErrorCode
pub fn _close_credentials_search_for_proof_req_async<F>( search_handle: IndyHandle, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
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>
Sourcepub 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>
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
Sourcepub 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
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
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more