[−][src]Function indy_crypto::ffi::cl::issuer::indy_crypto_cl_issuer_sign_credential_with_revoc
#[no_mangle]pub extern "C" fn indy_crypto_cl_issuer_sign_credential_with_revoc(
prover_id: *const c_char,
blinded_credential_secrets: *const c_void,
blinded_credential_secrets_correctness_proof: *const c_void,
credential_nonce: *const c_void,
credential_issuance_nonce: *const c_void,
credential_values: *const c_void,
credential_pub_key: *const c_void,
credential_priv_key: *const c_void,
rev_idx: u32,
max_cred_num: u32,
issuance_by_default: bool,
rev_reg: *const c_void,
rev_key_priv: *const c_void,
ctx_tails: *const c_void,
take_tail: extern "C" fn(ctx: *const c_void, idx: u32, tail_p: *mut *const c_void) -> ErrorCode,
put_tail: extern "C" fn(ctx: *const c_void, tail: *const c_void) -> ErrorCode,
credential_signature_p: *mut *const c_void,
credential_signature_correctness_proof_p: *mut *const c_void,
revocation_registry_delta_p: *mut *const c_void
) -> ErrorCode
Signs credential values with both primary and revocation keys.
Note that credential signature instances deallocation must be performed by calling indy_crypto_cl_credential_signature_free.
Note that credential signature correctness proof instances deallocation must be performed by calling indy_crypto_cl_signature_correctness_proof_free.
Note that credential signature correctness proof instances deallocation must be performed by calling indy_crypto_cl_revocation_registry_delta_free.
Arguments
prover_id
- Prover identifier.blinded_credential_secrets
- Blinded master secret instance pointer generated by Prover.blinded_credential_secrets_correctness_proof
- Blinded master secret correctness proof instance pointer.credential_nonce
- Nonce instance pointer used for verification of blinded_credential_secrets_correctness_proof.credential_issuance_nonce
- Nonce instance pointer used for creation of signature_correctness_proof.credential_values
- Credential values to be signed instance pointer.credential_pub_key
- Credential public key instance pointer.credential_priv_key
- Credential private key instance pointer.rev_idx
- User index in revocation accumulator. Required for non-revocation credential_signature part generation.max_cred_num
- Max credential number in generated registry.rev_reg
- Revocation registry instance pointer.rev_key_priv
- Revocation registry private key instance pointer.credential_signature_p
- Reference that will contain credential signature instance pointer.credential_signature_correctness_proof_p
- Reference that will contain credential signature correctness proof instance pointer.revocation_registry_delta_p
- Reference that will contain revocation registry delta instance pointer.