mirror of
https://github.com/laosb/swift-minisign.git
synced 2025-04-30 18:01:08 +00:00
Add Sendable conformance to Minisign types.
This commit is contained in:
parent
e162e99e2c
commit
17aa683ffd
2 changed files with 3 additions and 3 deletions
0
Package@swift-5.8.swift
Normal file
0
Package@swift-5.8.swift
Normal file
|
@ -11,7 +11,7 @@ import Foundation
|
|||
import CryptoKit
|
||||
#endif
|
||||
|
||||
public enum SignatureAlgorithm: RawRepresentable {
|
||||
public enum SignatureAlgorithm: Sendable, RawRepresentable {
|
||||
case pureEdDSA
|
||||
case hashedEdDSA
|
||||
|
||||
|
@ -39,7 +39,7 @@ public enum SignatureAlgorithm: RawRepresentable {
|
|||
private let untrustedCommentHeader = "untrusted comment: ".data(using: .utf8)!
|
||||
private let trustedCommentHeader = "trusted comment: ".data(using: .utf8)!
|
||||
|
||||
public struct PublicKey {
|
||||
public struct PublicKey: Sendable {
|
||||
public let untrustedComment: String
|
||||
public let signatureAlgorithm: SignatureAlgorithm
|
||||
public let keyID: Data
|
||||
|
@ -115,7 +115,7 @@ public struct PublicKey {
|
|||
}
|
||||
}
|
||||
|
||||
public struct Signature {
|
||||
public struct Signature: Sendable {
|
||||
public let untrustedComment: String
|
||||
public let signatureAlgorithm: SignatureAlgorithm
|
||||
public let keyID: Data
|
||||
|
|
Loading…
Add table
Reference in a new issue