Skip to main content

link_device

Function link_device 

Source
pub fn link_device(
    config: DeviceLinkConfig,
    ctx: &AuthsContext,
    clock: &dyn ClockProvider,
) -> Result<DeviceLinkResult, DeviceError>
Expand description

Links a new device to an existing identity by creating a signed attestation.

Args:

  • config: Device link parameters (identity alias, capabilities, etc.).
  • ctx: Runtime context providing storage adapters, key material, and passphrase provider.
  • clock: Clock provider for timestamp generation.

Usage:

let result = link_device(config, &ctx, &SystemClock)?;