Skip to content

Structure

EdDSA.PrivateKey

A struct representing a private key used in EdDSA (Edwards-curve Digital Signature Algorithm).
struct PrivateKey

Overview

In JWT, EdDSA private keys are represented as a pair of x-coordinate and private key (d) and are used for signing. Currently, only the Curve/ed25519 curve is supported.

Topics

Operators

  • ==(_:_:)
    Returns a Boolean value indicating whether two values are equal.

Initializers

  • init(backing:)
    Creates an EdDSA.PrivateKey instance using the provided private key.
  • init(curve:)
    Generates a new EdDSAKey instance with both public and private key components.
  • init(d:curve:)
    Creates an EdDSA.PrivateKey instance using both the public and private key components along with the specified curve.
  • init(pem:)
    Creates an EdDSA.PrivateKey instance using the provided PEM (Privacy Enhanced Mail) representation.

Instance Properties

Relationships

Conforms To

  • EdDSAKey
  • Swift.Equatable
  • Swift.Sendable
  • Swift.SendableMetatype