Protocol
MLDSAPrivateKey
The requirements JWTKit needs from the underlying SwiftCrypto private key backing an
MLDSA.PrivateKey.protocol MLDSAPrivateKey : Sendable
Overview
You shouldn’t need to conform your own types to this protocol: the SwiftCrypto MLDSA65.PrivateKey and MLDSA87.PrivateKey types already do.
Topics
Associated Types
associatedtype MLDSATypeThe MLDSA parameter set the key belongs to.associatedtype PublicKey : MLDSAPublicKeyThe type of the public key associated with this private key.
Initializers
init<D>(seedRepresentation: D, publicKey: Self.PublicKey?) throwsCreates a private key from the seed it is derived from.
Instance Properties
var publicKey: Self.PublicKeyThe public key associated with this private key.var seedRepresentation: DataThe 32-byte seed this private key is derived from.
Instance Methods
func signature<D>(for: D) throws -> DataSigns the given data.func signature<D, C>(for: D, context: C) throws -> DataSigns the given data within the given context.
Relationships
Inherits From
Swift.SendableSwift.SendableMetatype