[−][src]Function indyrs::ledger::parse_get_cred_def_response
pub fn parse_get_cred_def_response(
get_cred_def_response: &str
) -> Box<dyn Future<Item = (String, String), Error = IndyError>>
Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
Arguments
get_cred_def_response
- response of GET_CRED_DEF request.
Returns
Credential Definition Id and Credential Definition json.
{
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