crypto_scalar_base static method

int crypto_scalar_base(
  1. Uint8List pk,
  2. Uint8List sk
)

Implementation

static int crypto_scalar_base(Uint8List pk, Uint8List sk) {
  final p = List<Int32List>.generate(4, (_) => Int32List(16));

  TweetNaCl._scalarbase(p, sk, 0);
  TweetNaCl._pack(pk, p);

  return 0;
}