Function libindy_sys::indy_parse_get_cred_def_response [−][src]
pub unsafe extern "C" fn indy_parse_get_cred_def_response(
command_handle: indy_handle_t,
get_cred_def_response: *const c_char,
str: indy_str_str_cb
) -> indy_error_t
Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
#Params command_handle: command handle to map callback to caller context. get_cred_def_response: response of GET_CRED_DEF request. cb: Callback that takes command result as parameter.
#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
#Errors Common*