Generates public key from given secret key sk
.
Public key is Uint8List
with size 32.
publicKey(new Uint8List.fromList([1,2,3])); // [11, 198,162, ..., 184, 7]
Source
Uint8List publicKey(Uint8List sk) { var skHash = Hash(sk); var clamped = bytesToInteger(bitClamp(skHash)); final encoded = encodePoint(scalarMult(basePoint, clamped)); return encoded; }