publicKey static method

Uint8List publicKey(
  1. List<int> secretKey
)

Computes the public key for secretKey.

Implementation

static Uint8List publicKey(List<int> secretKey) {
  _checkLength(secretKey, 'secret key');
  return TweetNaCl.crypto_scalarmult_base(
    Uint8List(keyLength),
    Uint8List.fromList(secretKey),
  );
}