Skip to content

Instantly share code, notes, and snippets.

@adyliu
Created September 6, 2018 08:27
Show Gist options
  • Save adyliu/63d93895d07678d3d80a52dfbcb18976 to your computer and use it in GitHub Desktop.
Save adyliu/63d93895d07678d3d80a52dfbcb18976 to your computer and use it in GitHub Desktop.
Create EOS Key with java without RPC
package eos.sample;
import io.jafka.jeos.EosApiFactory;
import io.jafka.jeos.LocalApi;
public class EosCreateKey {
public static void main(String[] args) {
LocalApi api = EosApiFactory.createLocalApi();
String privateKey = api.createPrivateKey();
String publicKey = api.toPublicKey(privateKey);
System.out.println(publicKey + " " + privateKey);
}
}
@adyliu
Copy link
Author

adyliu commented Sep 6, 2018

output

EOS6M5H5sXc3k5x1dqn3XD7WiekKeYr41UbwNabDfoN7LAcRysR6Y 5JSpec4Dt6UsUTTg5cqQo9tGQyhMLEYCdr3E1hbUA7ndPEZ9KU5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment