randomKeys static method

KeyPair randomKeys()

Generates a random secret key and a corresponding public key.

Implementation

static KeyPair randomKeys() => Sodium.cryptoKxKeypair();