secretive/SecretKit/SecretStore.swift

19 lines
424 B
Swift
Raw Normal View History

2020-02-19 04:52:00 +00:00
import Combine
public protocol SecretStore: ObservableObject {
associatedtype SecretType: Secret
2020-03-04 07:14:38 +00:00
var name: String { get }
2020-02-19 04:52:00 +00:00
var secrets: [SecretType] { get }
2020-03-04 07:14:38 +00:00
func sign(data: Data, with secret: SecretType) throws -> Data
func delete(secret: SecretType) throws
}
extension NSNotification.Name {
static let secretStoreUpdated = NSNotification.Name("com.maxgoedjen.Secretive.secretStore.updated")
2020-02-19 04:52:00 +00:00
}