Struct indy::anoncreds::Prover [−][src]
pub struct Prover {}
Methods
impl Prover
[src]
impl Prover
pub fn create_master_secret(
wallet_handle: IndyHandle,
master_secret_id: Option<&str>
) -> Result<String, ErrorCode>
[src]
pub fn create_master_secret(
wallet_handle: IndyHandle,
master_secret_id: Option<&str>
) -> Result<String, ErrorCode>
pub fn create_master_secret_timeout(
wallet_handle: IndyHandle,
master_secret_id: Option<&str>,
timeout: Duration
) -> Result<String, ErrorCode>
[src]
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
pub fn create_master_secret_async<F: 'static>(
wallet_handle: IndyHandle,
master_secret_id: Option<&str>,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
[src]
pub fn create_master_secret_async<F: 'static>(
wallet_handle: IndyHandle,
master_secret_id: Option<&str>,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy function. The closure receives the return result
pub fn get_credential(
wallet_handle: IndyHandle,
cred_id: &str
) -> Result<String, ErrorCode>
[src]
pub fn get_credential(
wallet_handle: IndyHandle,
cred_id: &str
) -> Result<String, ErrorCode>
pub fn get_credential_timeout(
wallet_handle: IndyHandle,
cred_id: &str,
timeout: Duration
) -> Result<String, ErrorCode>
[src]
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
pub fn get_credential_async<F: 'static>(
wallet_handle: IndyHandle,
cred_id: &str,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
[src]
pub fn get_credential_async<F: 'static>(
wallet_handle: IndyHandle,
cred_id: &str,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy 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>
[src]
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>
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>
[src]
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
pub fn create_credential_req_async<F: 'static>(
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,
[src]
pub fn create_credential_req_async<F: 'static>(
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,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy 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>
[src]
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>
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>
[src]
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
pub fn store_credential_async<F: 'static>(
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,
[src]
pub fn store_credential_async<F: 'static>(
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,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy function. The closure receives the return result
pub fn get_credentials(
wallet_handle: IndyHandle,
filter_json: Option<&str>
) -> Result<String, ErrorCode>
[src]
pub fn get_credentials(
wallet_handle: IndyHandle,
filter_json: Option<&str>
) -> Result<String, ErrorCode>
pub fn get_credentials_timeout(
wallet_handle: IndyHandle,
filter_json: Option<&str>,
timeout: Duration
) -> Result<String, ErrorCode>
[src]
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
pub fn get_credentials_async<F: 'static>(
wallet_handle: IndyHandle,
filter_json: Option<&str>,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
[src]
pub fn get_credentials_async<F: 'static>(
wallet_handle: IndyHandle,
filter_json: Option<&str>,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy function. The closure receives the return result
pub fn search_credentials(
wallet_handle: IndyHandle,
query_json: Option<&str>
) -> Result<(i32, usize), ErrorCode>
[src]
pub fn search_credentials(
wallet_handle: IndyHandle,
query_json: Option<&str>
) -> Result<(i32, usize), ErrorCode>
pub fn search_credentials_timeout(
wallet_handle: IndyHandle,
query_json: Option<&str>,
timeout: Duration
) -> Result<(i32, usize), ErrorCode>
[src]
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
pub fn search_credentials_async<F: 'static>(
wallet_handle: IndyHandle,
query_json: Option<&str>,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, i32, usize) + Send,
[src]
pub fn search_credentials_async<F: 'static>(
wallet_handle: IndyHandle,
query_json: Option<&str>,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, i32, usize) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy function. The closure receives the return result
pub fn fetch_credentials(
search_handle: IndyHandle,
count: usize
) -> Result<String, ErrorCode>
[src]
pub fn fetch_credentials(
search_handle: IndyHandle,
count: usize
) -> Result<String, ErrorCode>
pub fn fetch_credentials_timeout(
search_handle: IndyHandle,
count: usize,
timeout: Duration
) -> Result<String, ErrorCode>
[src]
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
pub fn fetch_credentials_async<F: 'static>(
search_handle: IndyHandle,
count: usize,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
[src]
pub fn fetch_credentials_async<F: 'static>(
search_handle: IndyHandle,
count: usize,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy function. The closure receives the return result
pub fn close_credentials_search(
search_handle: IndyHandle
) -> Result<(), ErrorCode>
[src]
pub fn close_credentials_search(
search_handle: IndyHandle
) -> Result<(), ErrorCode>
pub fn close_credentials_search_timeout(
search_handle: IndyHandle,
timeout: Duration
) -> Result<(), ErrorCode>
[src]
pub fn close_credentials_search_timeout(
search_handle: IndyHandle,
timeout: Duration
) -> Result<(), ErrorCode>
timeout
- the maximum time this function waits for a response
pub fn close_credentials_search_async<F: 'static>(
search_handle: IndyHandle,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode) + Send,
[src]
pub fn close_credentials_search_async<F: 'static>(
search_handle: IndyHandle,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy function. The closure receives the return result
pub fn get_credentials_for_proof_req(
wallet_handle: IndyHandle,
proof_request_json: &str
) -> Result<String, ErrorCode>
[src]
pub fn get_credentials_for_proof_req(
wallet_handle: IndyHandle,
proof_request_json: &str
) -> Result<String, ErrorCode>
pub fn get_credentials_for_proof_req_timeout(
wallet_handle: IndyHandle,
proof_request_json: &str,
timeout: Duration
) -> Result<String, ErrorCode>
[src]
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
pub fn get_credentials_for_proof_req_async<F: 'static>(
wallet_handle: IndyHandle,
proof_request_json: &str,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
[src]
pub fn get_credentials_for_proof_req_async<F: 'static>(
wallet_handle: IndyHandle,
proof_request_json: &str,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy 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>
[src]
pub fn search_credentials_for_proof_req(
wallet_handle: IndyHandle,
proof_request_json: &str,
extra_query_json: Option<&str>
) -> 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>
[src]
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
pub fn search_credentials_for_proof_req_async<F: 'static>(
wallet_handle: IndyHandle,
proof_request_json: &str,
extra_query_json: Option<&str>,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, i32) + Send,
[src]
pub fn search_credentials_for_proof_req_async<F: 'static>(
wallet_handle: IndyHandle,
proof_request_json: &str,
extra_query_json: Option<&str>,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, i32) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy 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>
[src]
pub fn _fetch_credentials_for_proof_req(
search_handle: IndyHandle,
item_referent: &str,
count: usize
) -> Result<String, ErrorCode>
pub fn _fetch_credentials_for_proof_req_timeout(
search_handle: IndyHandle,
item_referent: &str,
count: usize,
timeout: Duration
) -> Result<String, ErrorCode>
[src]
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
pub fn _fetch_credentials_for_proof_req_async<F: 'static>(
search_handle: IndyHandle,
item_referent: &str,
count: usize,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
[src]
pub fn _fetch_credentials_for_proof_req_async<F: 'static>(
search_handle: IndyHandle,
item_referent: &str,
count: usize,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, String) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy function. The closure receives the return result
pub fn _close_credentials_search_for_proof_req(
search_handle: IndyHandle
) -> Result<(), ErrorCode>
[src]
pub fn _close_credentials_search_for_proof_req(
search_handle: IndyHandle
) -> Result<(), ErrorCode>
pub fn _close_credentials_search_for_proof_req_timeout(
search_handle: IndyHandle,
timeout: Duration
) -> Result<(), ErrorCode>
[src]
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
pub fn _close_credentials_search_for_proof_req_async<F: 'static>(
search_handle: IndyHandle,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode) + Send,
[src]
pub fn _close_credentials_search_for_proof_req_async<F: 'static>(
search_handle: IndyHandle,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy 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>
[src]
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>
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>
[src]
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
pub fn create_proof_async<F: 'static>(
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,
[src]
pub fn create_proof_async<F: 'static>(
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,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling indy function. The closure receives the return result