mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-03-08 18:47:23 +01:00
Prompting.
This commit is contained in:
@@ -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
|
||||
|
||||
6
SecretKit/Common/Types/SignedData.swift
Normal file
6
SecretKit/Common/Types/SignedData.swift
Normal file
@@ -0,0 +1,6 @@
|
||||
import Foundation
|
||||
|
||||
public struct SignedData {
|
||||
public let data: Data
|
||||
public let requiredAuthentication: Bool
|
||||
}
|
||||
Reference in New Issue
Block a user