Prompting.

This commit is contained in:
Max Goedjen
2021-11-06 23:12:04 -07:00
parent 0a3ee77625
commit aec12491d8
10 changed files with 39 additions and 21 deletions

View File

@@ -9,7 +9,7 @@ public protocol SecretStore: ObservableObject, Identifiable {
var name: String { get }
var secrets: [SecretType] { get }
func sign(data: Data, with secret: SecretType, for provenance: SigningRequestProvenance) throws -> Data
func sign(data: Data, with secret: SecretType, for provenance: SigningRequestProvenance) throws -> SignedData
// TODO: MOVE TO SEPARATE PROTOCOL?
func persistAuthentication(secret: SecretType, forDuration: TimeInterval) throws

View File

@@ -0,0 +1,6 @@
import Foundation
public struct SignedData {
public let data: Data
public let requiredAuthentication: Bool
}