random method

KeyPair random ()

Generates a random Stellar KeyPair object.

Implementation

static KeyPair random() {
  Uint8List secret = ed25519.TweetNaclFast.randombytes(32);
  return fromSecretSeedList(secret);
}