Add Sendable conformance to Minisign types.

This commit is contained in:
Shibo Lyu 2025-04-22 19:22:45 +08:00
parent e162e99e2c
commit 17aa683ffd
2 changed files with 3 additions and 3 deletions

0
Package@swift-5.8.swift Normal file
View file

View file

@ -11,7 +11,7 @@ import Foundation
import CryptoKit import CryptoKit
#endif #endif
public enum SignatureAlgorithm: RawRepresentable { public enum SignatureAlgorithm: Sendable, RawRepresentable {
case pureEdDSA case pureEdDSA
case hashedEdDSA case hashedEdDSA
@ -39,7 +39,7 @@ public enum SignatureAlgorithm: RawRepresentable {
private let untrustedCommentHeader = "untrusted comment: ".data(using: .utf8)! private let untrustedCommentHeader = "untrusted comment: ".data(using: .utf8)!
private let trustedCommentHeader = "trusted 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 untrustedComment: String
public let signatureAlgorithm: SignatureAlgorithm public let signatureAlgorithm: SignatureAlgorithm
public let keyID: Data public let keyID: Data
@ -115,7 +115,7 @@ public struct PublicKey {
} }
} }
public struct Signature { public struct Signature: Sendable {
public let untrustedComment: String public let untrustedComment: String
public let signatureAlgorithm: SignatureAlgorithm public let signatureAlgorithm: SignatureAlgorithm
public let keyID: Data public let keyID: Data