[][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 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 tails
  • rev_state_json: revocation registry state json
  • rev_reg_def_json: revocation registry definition json
  • rev_reg_delta_json: revocation registry definition delta json
  • 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 }