[−][src]Function indyrs::anoncreds::update_revocation_state
pub fn update_revocation_state(
blob_storage_reader_handle: BlobStorageReaderHandle,
rev_state_json: &str,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>
Create a new revocation state for a credential based on a revocation state created before.
Note that provided revocation delta must cover the registry gap from based state creation until the specified time
(this new delta should be received with parameters: from
: state_timestamp
and to
: needed_time
).
This function reduces the calculation time.
The resulting revocation state and provided timestamp can be saved and reused later by applying a new revocation delta again.
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 which covers the gap form originalrev_state_json
creation till the requested timestamp.timestamp
: 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": , (opaque type that contains data structures internal to Ursa. It should not be parsed and are likely to change in future versions). "timestamp" : integer }