Initializer
init(d:curve:)
Creates an
EdDSA.PrivateKey instance using both the public and private key components along with the specified curve.init(d: String, curve: EdDSACurve) throws
Parameters
dA
Stringrepresenting the private key, encoded in Base64 URL format.curveThe
EdDSACurverepresenting the elliptic curve used for the EdDSA key.
Discussion
This init constructs an EdDSA.PrivateKey from the provided private key (d). d is expected to be a Base64 URL encoded string.
Throws
EdDSAError/privateKeyMissingif the private key data is missing or cannot be properly converted.