secretive/SecretKit/SecretStore.swift
2020-03-03 23:14:38 -08:00

19 lines
424 B
Swift

import Combine
public protocol SecretStore: ObservableObject {
associatedtype SecretType: Secret
var name: String { get }
var secrets: [SecretType] { get }
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")
}