Protocol
MLDSAPublicKey
The requirements JWTKit needs from the underlying SwiftCrypto public key backing an
MLDSA.PublicKey.protocol MLDSAPublicKey : Sendable
Overview
You shouldn’t need to conform your own types to this protocol: the SwiftCrypto MLDSA65.PublicKey and MLDSA87.PublicKey types already do.
Topics
Associated Types
associatedtype MLDSATypeThe MLDSA parameter set the key belongs to.
Initializers
init(rawRepresentation: some DataProtocol) throwsCreates a public key from its raw byte representation.
Instance Properties
var rawRepresentation: DataRaw bytes representation of the public key.
Instance Methods
func isValidSignature<S, D>(S, for: D) -> BoolVerifies that the given signature is valid for the given data.func isValidSignature<S, D, C>(S, for: D, context: C) -> BoolVerifies that the given signature is valid for the given data within the given context.
Relationships
Inherits From
Swift.SendableSwift.SendableMetatype