On 8/21/23 8:43 AM, Albert Attard wrote:
Hello.
I believe there are two small typos in the JEP 339 page
(https://openjdk.org/jeps/339 <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?
Yes, good catches! I'll make sure we fix this.
--Sean