Skip to content

Structure

EdDSA.PublicKey

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

Overview

In JWT, EdDSA public keys are represented as a single x-coordinate and are used for verifying signatures. Currently, only the ed25519 curve is supported.

Topics

Operators

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

Initializers

  • init(backing:)
    Creates an EdDSA.PublicKey instance using the provided public key.
  • init(pem:)
    Creates an EdDSA.PublicKey instance using the provided PEM (Privacy Enhanced Mail) representation.
  • init(x:curve:)
    Creates an EdDSA.PublicKey instance using the public key x-coordinate and specified curve.

Instance Properties

Relationships

Conforms To

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