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
static func == (EdDSA.PublicKey, EdDSA.PublicKey) -> BoolReturns a Boolean value indicating whether two values are equal.
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