normalizePublicKey method
Validates 32-byte publicKey and returns its canonical base encoding,
or null when invalid (bad length, range, curve membership, or identity).
Implementation
@override
BuBytes? normalizePublicKey(List<int> publicKey) {
// Pure validation: identical math on every backend (Dart decoders are
// pinned equal to Rust by the api-comparison tests), so no FFI
// round-trip and no new Rust exports are needed.
final r = api.normalizePublicKey(publicKey.asBytes);
if (!r.isOk) return null;
return r.value;
}