[][src]Function indyrs::anoncreds::issuer_rotate_credential_def_start

pub fn issuer_rotate_credential_def_start(
    wallet_handle: WalletHandle,
    cred_def_id: &str,
    config_json: Option<&str>
) -> Box<dyn Future<Item = String, Error = IndyError>>

Generate temporary credential definitional keys for an existing one (owned by the caller of the library).

Use issuer_rotate_credential_def_apply function to set generated temporary keys as the main.

Arguments

  • wallet_handle: wallet handle (created by Wallet::open_wallet).
  • cred_def_id: an identifier of created credential definition stored in the wallet
  • config_json: (optional) type-specific configuration of credential definition as json:
    • 'CL':
      • support_revocation: whether to request non-revocation credential (optional, default false)

Returns

  • cred_def_json: public part of temporary created credential definition