Protocolvapor.jwt-kit 5.2.0JWTKit
ECDSAPrivateKey
ECDSAKeyTypes.swift:28protocol ECDSAPrivateKey : SendableBrowse conforming typesprotocol ECDSAPrivateKey : 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.
associatedtype PublicKey : ECDSAPublicKeyassociatedtype Signature : ECDSASignatureinit(compactRepresentable: Bool) 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 derRepresentation: Data { get }var pemRepresentation: String { get }var publicKey: Self.PublicKey { get }var rawRepresentation: Data { get }var x963Representation: Data { get }func signature(for data: some Digest) throws -> Self.Signature