Hello.

I believe there are two small typos in the JEP 339 page (
https://openjdk.org/jeps/339).

// example: use KeyFactory to contruct a public key
KeyFactory kf = KeyFactory.getInstance("EdDSA");
boolean xOdd = ...
BigInteger y = ...
NamedParameterSpec paramSpec = new NamedParameterSpec("Ed25519");
EdECPublicKeySpec pubSpec = new EdECPublicKeySpec(paramSpec, new EdPoint(xOdd,
y));
PublicKey pubKey = kf.generatePublic(pubSpec);


   - In the commend, I believe "*contruct*" should be "*construct*", and
   - Should the class name EdPoint be EdECPoint?


Thank you

With kind regards,
Albert Attard

Reply via email to