Skip to main content

quick_setup

Function quick_setup 

Source
pub fn quick_setup(
    alias: &KeyAlias,
    ctx: &AuthsContext,
    keychain: &(dyn KeyStorage + Send + Sync),
    signer: &dyn SecureSigner,
    passphrase_provider: &dyn PassphraseProvider,
) -> Result<SetupResult, SetupError>
Expand description

One-shot convenience wrapper that creates a developer identity with sensible defaults: global git signing, no platform verification, no registry.

Args:

  • alias: Human-readable name for the key (e.g. “main”).
  • ctx: Injected infrastructure adapters.
  • keychain: Platform keychain backend.
  • signer: Secure signer for attestation creation.
  • passphrase_provider: Provides the passphrase for key encryption.

Usage:

let result = quick_setup("main", &ctx, keychain.as_ref(), &signer, &provider)?;