Structure
EdDSACurve
A struct representing an Elliptic Curve used in EdDSA (Edwards-curve Digital Signature Algorithm).
struct EdDSACurve
Overview
EdDSACurve encapsulates different types of elliptic curves specifically used in EdDSA cryptographic operations. It allows for representing and working with EdDSA curves. The struct provides a static property for the Ed25519 curve, a widely used curve known for its balance of security and efficiency. This makes EdDSACurve suitable for operations requiring Ed25519, such as generating digital signatures or key pairs.
Topics
Initializers
init(from: any Decoder) throwsCreates a new instance by decoding from the given decoder.init?(rawValue: String)Creates a new instance with the specified raw value.
Instance Properties
var rawValue: StringTextual representation of the curve.
Instance Methods
func encode(to: any Encoder) throwsEncodes this value into the given encoder.
Type Properties
static let ed25519: EdDSACurveRepresents the Ed25519 curve.
Relationships
Conforms To
Swift.DecodableSwift.EncodableSwift.EquatableSwift.RawRepresentableSwift.SendableSwift.SendableMetatype