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
- d
A
String
representing the private key, encoded in Base64 URL format.- curve
The
EdDSACurve
representing the elliptic curve used for the EdDSA key.
Throws
EdDSAError/privateKeyMissing
if the private key data is missing or cannot be properly converted.
This init constructs an EdDSA.PrivateKey
from the provided private key (d). d
is expected to be a Base64 URL encoded string.