[][src]Function indyrs::anoncreds::create_revocation_state

pub fn create_revocation_state(
    blob_storage_reader_handle: BlobStorageReaderHandle,
    rev_reg_def_json: &str,
    rev_reg_delta_json: &str,
    timestamp: u64,
    cred_rev_id: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>

Create revocation state for a credential that corresponds to a particular time.

Note that revocation delta must cover the whole registry existence time. You can use from: 0 and to: needed_time as parameters for building request to get correct revocation delta.

The resulting revocation state and provided timestamp can be saved and reused later with applying a new revocation delta with update_revocation_state function. This new delta should be received with parameters: from: timestamp and to: needed_time.

Arguments

  • blob_storage_reader_handle: configuration of blob storage reader handle that will allow to read revocation tails
  • rev_reg_def_json: revocation registry definition json
  • rev_reg_delta_json: revocation registry delta which covers the whole registry existence time
  • timestamp: time represented as a total number of seconds from Unix Epoch
  • cred_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 }