Structure
MLDSA.PublicKey
A struct representing a public key used in MLDSA (Module-Lattice-Based Digital Signature Algorithm).
struct PublicKey<KeyType> where KeyType : MLDSAType
Overview
MLDSA public keys are used to verify signatures. The parameter set the key belongs to is expressed by the MLDSA.PublicKey.MLDSAType generic parameter, so a key is written as, for example, MLDSA.PublicKey<MLDSA87>. The MLDSA65PublicKey and MLDSA87PublicKey typealiases are provided as a shorthand.
Topics
Initializers
init(backing: some MLDSAPublicKey)Creates anMLDSA.PublicKeyinstance using the provided public key.init(rawRepresentation: some DataProtocol) throwsCreates anMLDSA.PublicKeyinstance using the provided raw byte representation.
Type Aliases
typealias MLDSATypeThe MLDSA parameter set this key belongs to.
Relationships
Conforms To
MLDSAKeySwift.SendableSwift.SendableMetatype