[][src]Function indyrs::ledger::build_revoc_reg_entry_request

pub fn build_revoc_reg_entry_request(
    submitter_did: &str,
    revoc_reg_def_id: &str,
    rev_def_type: &str,
    value: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>

Builds a REVOC_REG_ENTRY request. Request to add the RevocReg entry containing the new accumulator value and issued/revoked indices. This is just a delta of indices, not the whole list. So, it can be sent each time a new credential is issued/revoked.

Arguments

  • submitter_did - DID of the submitter stored in secured Wallet.
  • revoc_reg_def_id - ID of the corresponding RevocRegDef.
  • rev_def_type - Revocation Registry type (only CL_ACCUM is supported for now).
  • value - Registry-specific data: { value: { prevAccum: string - previous accumulator value. accum: string - current accumulator value. issued: array - an array of issued indices. revoked: array an array of revoked indices. }, ver: string - version revocation registry entry json

}

Returns

Request result as json.