signalapp / curve25519-java

Pure Java and JNI backed Curve25519 implementation.
GNU General Public License v3.0
233 stars 95 forks source link

Allow to restore public key from private key #28

Open IlyaGazman opened 6 years ago

IlyaGazman commented 6 years ago

I am using your library for Java blockchain development: https://github.com/Confidence-coin/coco I was looking for the ability to generate a public key from a private key, eventually, I found this:

byte[] publicKey = new byte[32]; curve_sigs.curve25519_keygen(publicKey, ssk);

Can you make this code easier to find? For example, put it in Curve25519KeyPair.