TM-SGNL-iOS/SignalServiceKit/SecureValueRecovery/SVR2/SVR2AuthCredential.swift
TeleMessage developers dde0620daf initial commit
2025-05-03 12:28:28 -07:00

20 lines
536 B
Swift

//
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
// Transparent wrapper that exists purely to make it clear to readers
// that the credential must be for SVR2, not an arbitrary RemoteAttestation.Auth.
public struct SVR2AuthCredential: Equatable, Codable {
public let credential: RemoteAttestation.Auth
public init(credential: RemoteAttestation.Auth) {
self.credential = credential
}
}
public enum SVR2 {
public typealias AuthMethod = SVR.AuthMethod
}