scCheck static method
True iff s is a canonical (< L) 32-byte scalar, else false.
Implementation
static bool scCheck(List<int> s) {
if (s.length != 32) return false;
try {
Ed25519Fr.fromBytes(s);
return true;
} catch (_) {
return false;
}
}