Share Vault, persistence, SSH/SFTP, forwarding, and SwiftUI components across platforms. Add mobile editors, terminal input, standalone Assistant, Metrics navigation, transfers, and a unified Live Activity with host system icons. Validation: 35 iOS tests and 100 focused macOS tests pass; formatting and zh-Hans checks pass. The full macOS run reports 14 issues in the documented timing, Keychain, and popover suites. Remaining Assistant tool and CloudKit work is tracked in Memory/MOBILE_ROLLOUT.md.
27 lines
815 B
Swift
27 lines
815 B
Swift
import Foundation
|
|
|
|
public nonisolated struct SecureEnclaveKeyCredential: Codable, Hashable, Sendable {
|
|
public var dataRepresentation: Data
|
|
public init(dataRepresentation: Data) {
|
|
self.dataRepresentation = dataRepresentation
|
|
}
|
|
|
|
}
|
|
|
|
public nonisolated enum StoredSSHKeyCredential: Hashable, Sendable {
|
|
case software(SSHPrivateKeySecret)
|
|
case secureEnclave(SecureEnclaveKeyCredential)
|
|
}
|
|
|
|
public nonisolated struct SecureEnclaveKeyMaterial: Sendable {
|
|
public var credential: SecureEnclaveKeyCredential
|
|
public var publicKey: String
|
|
public var fingerprint: String
|
|
public init(credential: SecureEnclaveKeyCredential, publicKey: String, fingerprint: String) {
|
|
self.credential = credential
|
|
self.publicKey = publicKey
|
|
self.fingerprint = fingerprint
|
|
}
|
|
|
|
}
|