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 anEdDSA.PublicKeyinstance using the provided public key.init(pem:)Creates anEdDSA.PublicKeyinstance using the provided PEM (Privacy Enhanced Mail) representation.init(x:curve:)Creates anEdDSA.PublicKeyinstance using the public key x-coordinate and specified curve.
Instance Properties
pemRepresentationPEM (Privacy Enhanced Mail) representation of the public key.rawRepresentationRaw bytes representation of the public key.
Relationships
Conforms To
EdDSAKeySwift.EquatableSwift.SendableSwift.SendableMetatype