Last active
November 30, 2019 12:00
-
-
Save ketola/12778e3e6b1d3c72c608ecff878abd2b to your computer and use it in GitHub Desktop.
Libra key-pair
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
Security.addProvider(new BouncyCastleProvider()); | |
KeyPairGenerator kpGen = KeyPairGenerator.getInstance("Ed25519", "BC"); | |
KeyPair keyPair = kpGen.generateKeyPair(); | |
PrivateKey privateKey = keyPair.getPrivate(); | |
PublicKey publicKey = keyPair.getPublic(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment