Generate a new key pair
ED25519
Ed25519PrivateKey newKey = Ed25519PrivateKey.generate();
Ed25519PublicKey newPublicKey = newKey.publicKey;
System.out.println("private key = " + newKey);
System.out.println("public key = " + newPublicKey);
//v1.3.2const privateKey = PrivateKey.generate();
const publicKey = privateKey.publicKey;
console.log("private = " + privateKey);
console.log("public = " + publicKey);
//v1.4.4ECDSA (secp256k1_)
Last updated