pub struct AnonCreds {}
Implementations
sourceimpl AnonCreds
impl AnonCreds
sourcepub fn create_revocation_state(
blob_storage_reader_handle: IndyHandle,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str
) -> Result<String, ErrorCode>
pub fn create_revocation_state(
blob_storage_reader_handle: IndyHandle,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str
) -> Result<String, ErrorCode>
Create revocation state for a credential in the particular time moment.
Arguments
blob_storage_reader_handle
: configuration of blob storage reader handle that will allow to read revocation tailsrev_reg_def_json
: revocation registry definition jsonrev_reg_delta_json
: revocation registry definition delta jsontimestamp
: time represented as a total number of seconds from Unix Epochcred_rev_id
: user credential revocation id in revocation registry
Returns
revocation_state_json
: { “rev_reg”:, “witness”: , “timestamp” : integer }
sourcepub fn create_revocation_state_timeout(
blob_storage_reader_handle: IndyHandle,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
timeout: Duration
) -> Result<String, ErrorCode>
pub fn create_revocation_state_timeout(
blob_storage_reader_handle: IndyHandle,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
timeout: Duration
) -> Result<String, ErrorCode>
Create revocation state for a credential in the particular time moment.
Arguments
blob_storage_reader_handle
: configuration of blob storage reader handle that will allow to read revocation tailsrev_reg_def_json
: revocation registry definition jsonrev_reg_delta_json
: revocation registry definition delta jsontimestamp
: time represented as a total number of seconds from Unix Epochcred_rev_id
: user credential revocation id in revocation registrytimeout
- the maximum time this function waits for a response
Returns
revocation_state_json
: { “rev_reg”:, “witness”: , “timestamp” : integer }
sourcepub fn create_revocation_state_async<F: 'static>(
blob_storage_reader_handle: IndyHandle,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode, String) + Send,
pub fn create_revocation_state_async<F: 'static>(
blob_storage_reader_handle: IndyHandle,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode, String) + Send,
Create revocation state for a credential in the particular time moment.
Arguments
blob_storage_reader_handle
: configuration of blob storage reader handle that will allow to read revocation tailsrev_reg_def_json
: revocation registry definition jsonrev_reg_delta_json
: revocation registry definition delta jsontimestamp
: time represented as a total number of seconds from Unix Epochcred_rev_id
: user credential revocation id in revocation registryclosure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
sourcepub fn update_revocation_state(
blob_storage_reader_handle: IndyHandle,
rev_state_json: &str,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str
) -> Result<String, ErrorCode>
pub fn update_revocation_state(
blob_storage_reader_handle: IndyHandle,
rev_state_json: &str,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str
) -> Result<String, ErrorCode>
Create new revocation state for a credential based on existed state at the particular time moment (to reduce calculation time).
Arguments
blob_storage_reader_handle
: configuration of blob storage reader handle that will allow to read revocation tailsrev_state_json
: revocation registry state jsonrev_reg_def_json
: revocation registry definition jsonrev_reg_delta_json
: revocation registry definition delta jsontimestamp
: time represented as a total number of seconds from Unix Epochcred_rev_id
: user credential revocation id in revocation registry
Returns
revocation_state_json
: { “rev_reg”:, “witness”: , “timestamp” : integer }
sourcepub fn update_revocation_state_timeout(
blob_storage_reader_handle: IndyHandle,
rev_state_json: &str,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
timeout: Duration
) -> Result<String, ErrorCode>
pub fn update_revocation_state_timeout(
blob_storage_reader_handle: IndyHandle,
rev_state_json: &str,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
timeout: Duration
) -> Result<String, ErrorCode>
Create new revocation state for a credential based on existed state at the particular time moment (to reduce calculation time).
Arguments
blob_storage_reader_handle
: configuration of blob storage reader handle that will allow to read revocation tailsrev_state_json
: revocation registry state jsonrev_reg_def_json
: revocation registry definition jsonrev_reg_delta_json
: revocation registry definition delta jsontimestamp
: time represented as a total number of seconds from Unix Epochcred_rev_id
: user credential revocation id in revocation registrytimeout
- the maximum time this function waits for a response
Returns
revocation_state_json
: { “rev_reg”:, “witness”: , “timestamp” : integer }
sourcepub fn update_revocation_state_async<F: 'static>(
blob_storage_reader_handle: IndyHandle,
rev_state_json: &str,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode, String) + Send,
pub fn update_revocation_state_async<F: 'static>(
blob_storage_reader_handle: IndyHandle,
rev_state_json: &str,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode, String) + Send,
Create new revocation state for a credential based on existed state at the particular time moment (to reduce calculation time).
Arguments
blob_storage_reader_handle
: configuration of blob storage reader handle that will allow to read revocation tailsrev_state_json
: revocation registry state jsonrev_reg_def_json
: revocation registry definition jsonrev_reg_delta_json
: revocation registry definition delta jsontimestamp
: time represented as a total number of seconds from Unix Epochcred_rev_id
: user credential revocation id in revocation registryclosure
- the closure that is called when finished
Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
Auto Trait Implementations
impl RefUnwindSafe for AnonCreds
impl Send for AnonCreds
impl Sync for AnonCreds
impl Unpin for AnonCreds
impl UnwindSafe for AnonCreds
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more