Function libindy_sys::indy_build_revoc_reg_def_request[][src]

pub unsafe extern "C" fn indy_build_revoc_reg_def_request(
    command_handle: indy_handle_t,
    submitter_did: *const c_char,
    data: *const c_char,
    str: indy_str_cb
) -> indy_error_t

Builds a REVOC_REG_DEF request. Request to add the definition of revocation registry to an exists credential definition.

#Params command_handle: command handle to map callback to caller context. submitter_did: DID of the submitter stored in secured Wallet. data: Revocation Registry data: { "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. }, "ver": string - version of revocation registry definition json. } cb: Callback that takes command result as parameter.

#Returns Request result as json.

#Errors Common*