keyPair static method

KeyPair keyPair()

Implementation

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

  TweetNaclFast.crypto_box_keypair(kp.publicKey, kp.secretKey);
  return kp;
}