StructureJWTKit
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
Initializers
init(backing: Curve25519.Signing.PublicKey)Creates anEdDSA.PublicKeyinstance using the provided public key.init(pem: String) throwsCreates anEdDSA.PublicKeyinstance using the provided PEM (Privacy Enhanced Mail) representation.init(x: String, curve: EdDSACurve) throwsCreates anEdDSA.PublicKeyinstance using the public key x-coordinate and specified curve.
Instance Properties
var pemRepresentation: StringPEM (Privacy Enhanced Mail) representation of the public key.var rawRepresentation: DataRaw bytes representation of the public key.
Relationships
Conforms To
EdDSAKeySwift.EquatableSwift.SendableSwift.SendableMetatype