[][src]Function indy_crypto::ffi::cl::issuer::indy_crypto_cl_issuer_new_credential_def

#[no_mangle]
pub extern "C" fn indy_crypto_cl_issuer_new_credential_def(
    credential_schema: *const c_void,
    non_credential_schema: *const c_void,
    support_revocation: bool,
    credential_pub_key_p: *mut *const c_void,
    credential_priv_key_p: *mut *const c_void,
    credential_key_correctness_proof_p: *mut *const c_void
) -> ErrorCode

Creates and returns credential definition (public and private keys, correctness proof) entities.

Note that credential public key instances deallocation must be performed by calling indy_crypto_cl_credential_public_key_free.

Note that credential private key instances deallocation must be performed by calling indy_crypto_cl_credential_private_key_free.

Note that credential key correctness proof instances deallocation must be performed by calling indy_crypto_cl_credential_key_correctness_proof_free.

Arguments

  • credential_schema - Reference that contains credential schema instance pointer.
  • non_credential_schema - Reference that contains non credential schema instance pointer
  • support_revocation - If true non revocation part of credential keys will be generated.
  • credential_pub_key_p - Reference that will contain credential public key instance pointer.
  • credential_priv_key_p - Reference that will contain credential private key instance pointer.
  • credential_key_correctness_proof_p - Reference that will contain credential keys correctness proof instance pointer.