abstract fun createRevocationStateForCredential(agent: Agent, forTimeStamp: Long, credentialObjects: CredentialInfo, revocationRegistryDefinitionJson: String, revocationRegistryDeltaJson: String): Single<String>
Creates revocation state
credentialObjects
- of CredentialInfo
revocationRegistryDefinitionJson
- the revocation registry definition from the ledger
{
"id": string - ID of the Revocation Registry,
"revocDefType": string - Revocation Registry type (only CL_ACCUM is supported for now),
"tag": string - Unique descriptive ID of the Registry,
"credDefId": string - ID of the corresponding CredentialDefinition,
"value": Registry-specific data {
"issuanceType": string - Type of Issuance(ISSUANCE_BY_DEFAULT or ISSUANCE_ON_DEMAND),
"maxCredNum": number - Maximum number of credentials the Registry can serve.
"tailsHash": string - Hash of tails.
"tailsLocation": string - Location of tails file.
"publicKeys": <public_keys> - Registry's public key (opaque type that contains data structures internal to Ursa.
It should not be parsed and are likely to change in future versions).
},
"ver": string - version of revocation registry definition json.
}
revocationRegistryDeltaJson
- the revocation registry delta from the ledger
{
value: {
prevAccum: string - previous accumulator value.
accum: string - current accumulator value.
revoked: array an array of revoked indices.
},
ver: string - version revocation registry delta json
}
Return
the revocation state json