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