isPrivate function

bool isPrivate(
  1. Uint8List x
)

Is Buffer Private Key ?

Implementation

bool isPrivate(Uint8List x) {
  if (!isScalar(x)) return false;
  return _compare(x, _zero32) > 0 && // > 0
      _compare(x, _ecGroupOrder as Uint8List) < 0; // < G
}