Protocolvapor.jwt-kit 5.2.0JWTKit
ECDSAPublicKey
ECDSAKeyTypes.swift:44protocol ECDSAPublicKey : SendableBrowse conforming typesprotocol ECDSAPublicKey : Sendableimport JWTKit🔑 JSON Web Token signing and verification (HMAC, RSA, PSS, ECDSA, EdDSA) using SwiftCrypto.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init?(_ key: Certificate.PublicKey) init(compactRepresentation: some ContiguousBytes) throws init(compressedRepresentation: some ContiguousBytes) throws init<Bytes>(derRepresentation: Bytes) throws where Bytes : RandomAccessCollection, Bytes.Element == UInt8 init(pemRepresentation: String) throws init(rawRepresentation: some ContiguousBytes) throws init(x963Representation: some ContiguousBytes) throws var compactRepresentation: Data? { get }var compressedRepresentation: Data { get }var derRepresentation: Data { get }var pemRepresentation: String { get }var rawRepresentation: Data { get }var x963Representation: Data { get }func isValidSignature(_ signature: some DataProtocol, for data: some Digest) throws -> Bool