Skip to content

Structure

MLDSA.PrivateKey

A struct representing a private key used in MLDSA (Module-Lattice-Based Digital Signature Algorithm).
struct PrivateKey<KeyType> where KeyType : MLDSAType

Overview

MLDSA private keys are used to sign tokens. The parameter set the key belongs to is expressed by the MLDSA.PrivateKey.MLDSAType generic parameter, so a key is written as, for example, MLDSA.PrivateKey<MLDSA87>. The MLDSA65PrivateKey and MLDSA87PrivateKey typealiases are provided as a shorthand.

Topics

Initializers

Instance Properties

Type Aliases

Relationships

Conforms To

  • MLDSAKey
  • Swift.Sendable
  • Swift.SendableMetatype