pub struct Verifier {}
Implementations§
Source§impl Verifier
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>
Sourcepub 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>
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
Sourcepub fn verify_proof_async<F>(
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
pub fn verify_proof_async<F>( 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
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 Verifier
impl RefUnwindSafe for Verifier
impl Send for Verifier
impl Sync for Verifier
impl Unpin for Verifier
impl UnwindSafe for Verifier
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