publicKey method

  1. @override
BuBytes publicKey(
  1. List<int> privateKey
)
override

Derives the 32-byte public key from 32-byte privateKey (clamped scalar-mult with base point u = 9). Throws on invalid length.

Implementation

@override
BuBytes publicKey(List<int> privateKey) {
  ApiValidate.length(
    privateKey,
    32,
    operation: '$_tag.publicKey',
    name: 'privateKey',
  );
  return inner.publicKey(privateKey);
}