Function libindy_sys::indy_build_cred_def_request [−][src]
pub unsafe extern "C" fn indy_build_cred_def_request(
command_handle: indy_handle_t,
submitter_did: *const c_char,
data: *const c_char,
str: indy_str_cb
) -> indy_error_t
Builds an CRED_DEF request. Request to add a Credential Definition (in particular, public key), that Issuer creates for a particular Credential Schema.
#Params
command_handle: command handle to map callback to caller context.
submitter_did: DID of the submitter stored in secured Wallet.
data: 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
#Returns Request result as json.
#Errors Common*