randomKey static method

Uint8List randomKey()

Creates a random public key.

Implementation

static Uint8List randomKey() {
  var bytes = Uint8List(32);
  fillBytesWithSecureRandom(bytes);
  return bytes;
}