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 anEdDSA.PrivateKeyinstance using the provided private key.init(curve:)Generates a newEdDSAKeyinstance with both public and private key components.init(d:curve:)Creates anEdDSA.PrivateKeyinstance using both the public and private key components along with the specified curve.init(pem:)Creates anEdDSA.PrivateKeyinstance using the provided PEM (Privacy Enhanced Mail) representation.
Instance Properties
pemRepresentationPEM (Privacy Enhanced Mail) representation of the public key.publicKeyEdDSA.PublicKeyassociated with this private key.rawRepresentationRaw bytes representation of the private key.
Relationships
Conforms To
EdDSAKeySwift.EquatableSwift.SendableSwift.SendableMetatype