I'm trying to use a java implementation of ed25519.

In the code, I can't find any functions that generate keys.

My experience with cryptography is limited to about three weeks of asking questions on stack.

Does the code generate keys? If so, which function?


1 Answer 1


Ed25519 is a specific implementation of EdDSA using the Twisted Edwards curve:

x^2 + y^2 = 1 + (121665/121666) * (x^2)(y^2)

It's known as high speed high security signature algorithm. For using the code you pointed out, you need to feed sk, pk, m, sm.

So first you need to call publickey function with sk, then call signature function with m, sk and pk. PK is byte array returned from publickey function.

An example entry:


It's sk:pk:m:sm

You can find more info at: http://ed25519.cr.yp.to/index.html

  • $\begingroup$ Thank you so very much M. C.! I think I understand, but how is sk generated? Thank you so very much in advance! $\endgroup$
    – user7024
    Commented Jan 11, 2014 at 21:42
  • $\begingroup$ SK is signing key, there is a Python code here github.com/warner/python-ed25519/blob/master/src/ed25519/… which does have a function called create_keypair, that's how you create key pairs $\endgroup$ Commented Jan 11, 2014 at 21:47
  • $\begingroup$ @Gracchus: Private signing keys can be generated from just the 32-byte seed, but require additional work before you can make signatures $\endgroup$ Commented Jan 11, 2014 at 21:52
  • $\begingroup$ More info: blog.mozilla.org/warner/2011/11/29/ed25519-keys $\endgroup$ Commented Jan 11, 2014 at 21:53