OZAuthenticatePasskeyResult

public struct OZAuthenticatePasskeyResult : Sendable, Hashable

Result of standalone passkey authentication, typically used with the indexer to discover deployed contracts before calling connectWallet(options:).

  • Base64URL-encoded credential identifier.

    Declaration

    Swift

    public let credentialId: String
  • Normalised WebAuthn signature produced during the ceremony.

    Declaration

    Swift

    public let signature: OZWebAuthnSignature
  • Stored secp256r1 public key (65 bytes) when the credential is present in local storage. Empty Data otherwise — callers can resolve the key through the indexer or on-chain context rules when needed.

    Declaration

    Swift

    public let publicKey: Data
  • Undocumented

    Declaration

    Swift

    public init(
        credentialId: String,
        signature: OZWebAuthnSignature,
        publicKey: Data
    )
  • Equality compares every field. The publicKey field is compared in constant time.

    Declaration

    Swift

    public static func == (lhs: OZAuthenticatePasskeyResult, rhs: OZAuthenticatePasskeyResult) -> Bool
  • Combines every field into the supplied hasher. The publicKey field is hashed by raw byte content so two results with byte-equal public keys produce the same hash value (matching the constant-time == contract).

    Declaration

    Swift

    public func hash(into hasher: inout Hasher)