Struct rust_libindy_wrapper::anoncreds::Verifier [−][src]
pub struct Verifier {}
Methods
impl Verifier
[src]
impl Verifier
pub fn verify_proof(
proof_request_json: &str,
proof_json: &str,
schemas_json: &str,
credential_defs_json: &str,
rev_reg_defs_json: &str,
rev_regs_json: &str
) -> Result<bool, ErrorCode>
[src]
pub fn verify_proof(
proof_request_json: &str,
proof_json: &str,
schemas_json: &str,
credential_defs_json: &str,
rev_reg_defs_json: &str,
rev_regs_json: &str
) -> Result<bool, ErrorCode>
pub fn verify_proof_timeout(
proof_request_json: &str,
proof_json: &str,
schemas_json: &str,
credential_defs_json: &str,
rev_reg_defs_json: &str,
rev_regs_json: &str,
timeout: Duration
) -> Result<bool, ErrorCode>
[src]
pub fn verify_proof_timeout(
proof_request_json: &str,
proof_json: &str,
schemas_json: &str,
credential_defs_json: &str,
rev_reg_defs_json: &str,
rev_regs_json: &str,
timeout: Duration
) -> Result<bool, ErrorCode>
timeout
- the maximum time this function waits for a response
pub fn verify_proof_async<F: 'static>(
proof_request_json: &str,
proof_json: &str,
schemas_json: &str,
credential_defs_json: &str,
rev_reg_defs_json: &str,
rev_regs_json: &str,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, bool) + Send,
[src]
pub fn verify_proof_async<F: 'static>(
proof_request_json: &str,
proof_json: &str,
schemas_json: &str,
credential_defs_json: &str,
rev_reg_defs_json: &str,
rev_regs_json: &str,
closure: F
) -> ErrorCode where
F: FnMut(ErrorCode, bool) + Send,
closure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result