keyPair static method

KeyPair keyPair()

Implementation

static KeyPair keyPair() {
  KeyPair kp = new KeyPair(publicKeyLength, secretKeyLength);

  TweetNaclFast.crypto_sign_keypair(kp.publicKey, kp.secretKey, false);
  return kp;
}