x25519Base function
Computes X25519(k, 9): the public key for private scalar scalar32.
The base point u = 9 is encoded as the byte 0x09 followed by 31 zero bytes.
Implementation
Uint8List x25519Base(Uint8List scalar32) {
final Uint8List base = Uint8List(32);
base[0] = 9;
return x25519(scalar32, base);
}