random static method

KeyPair random()

Generates a random Stellar KeyPair object.

Implementation

static KeyPair random() {
  ed25519.SigningKey sk = ed25519.SigningKey.generate();
  return new KeyPair(sk.publicKey.asTypedList, sk.asTypedList);
}