Created
September 6, 2018 08:27
-
-
Save adyliu/63d93895d07678d3d80a52dfbcb18976 to your computer and use it in GitHub Desktop.
Create EOS Key with java without RPC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output