random static method
Creates a random key pair based on the given hashSize
(optional).
By default, the hashSize
is set to 32-bytes.
Implementation
static Future<KeyPair> random() async {
return KeyPair.fromPrivateKey(hexFromBytes(randomKey()));
}