abstract fun lookupCredentialDefinitionJson(agent: Agent, definitionId: String): Single<String>
Retrieves the credential definition from the ledger.
agent
- for which to lookup the definition.
definitionId
- is the credential definition ID to lookup.
Return
credentialDefinitionJson String as:
{
id: string - identifier of credential definition
schemaId: string - identifier of stored in ledger schema
type: string - type of the credential definition. CL is the only supported type now.
tag: string - allows to distinct between credential definitions for the same issuer and schema
value: Dictionary with Credential Definition's data: {
primary: primary credential public key,
Optional: revocation credential public key
},
ver: string - Version of the Credential Definition json
}