secretive/SecretKit/SmartCard/SmartCardSecret.swift

23 lines
419 B
Swift
Raw Normal View History

2020-03-04 07:14:38 +00:00
import Foundation
import Combine
extension SmartCard {
public struct Secret: SecretKit.Secret {
2020-03-07 23:04:36 +00:00
public init(id: Data, name: String, publicKey: Data) {
self.id = id
// self.name = name
self.publicKey = publicKey
}
2020-03-04 07:14:38 +00:00
public let id: Data
2020-03-07 23:04:36 +00:00
public var name: String {
UUID().uuidString
}
2020-03-04 07:14:38 +00:00
public let publicKey: Data
}
}