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

#[no_mangle]
pub extern "C" fn indy_crypto_cl_issuer_new_revocation_registry_def(
    credential_pub_key: *const c_void,
    max_cred_num: u32,
    issuance_by_default: bool,
    rev_key_pub_p: *mut *const c_void,
    rev_key_priv_p: *mut *const c_void,
    rev_reg_p: *mut *const c_void,
    rev_tails_generator_p: *mut *const c_void
) -> ErrorCode

Creates and returns revocation registries definition (public and private keys, accumulator, tails generator) entities.

Note that keys registries deallocation must be performed by calling indy_crypto_cl_revocation_key_public_free and indy_crypto_cl_revocation_key_private_free.

Note that accumulator deallocation must be performed by calling indy_crypto_cl_revocation_registry_free.

Note that tails generator deallocation must be performed by calling indy_crypto_cl_revocation_tails_generator_free.

Arguments

  • credential_pub_key - Reference that contains credential pub key instance pointer.
  • max_cred_num - Max credential number in generated registry.
  • issuance_by_default - Type of issuance. If true all indices are assumed to be issued and initial accumulator is calculated over all indices If false nothing is issued initially accumulator is 1
  • rev_key_pub_p - Reference that will contain revocation key public instance pointer.
  • rev_key_priv_p - Reference that will contain revocation key private instance pointer.
  • rev_reg_p - Reference that will contain revocation registry instance pointer.
  • rev_tails_generator_p - Reference that will contain revocation tails generator instance pointer.