DeviceIdentifierImpl

public final class DeviceIdentifierImpl : DeviceIdentifier, Codable, Sendable

Concrete identifier storing only key pair; id is computed.

  • id Asynchronous

    The unique identifier for the device, computed as a SHA-256 hash of the public key.

    Declaration

    Swift

    public var id: String { get async throws }
  • Initializes a new instance of DeviceIdentifierImpl.

    Declaration

    Swift

    public init(deviceIdentifierKeyPair: DeviceIdentifierKeyPair, legacyIdentifier: String? = nil)

    Parameters

    deviceIdentifierKeyPair

    The key pair for the device identifier.

    legacyIdentifier

    An optional legacy identifier for migration purposes. Defaults to nil.