isSignature function

bool isSignature(
  1. Uint8List value
)

Is Signature

Implementation

bool isSignature(Uint8List value) {
  Uint8List r = value.sublist(0, 32);
  Uint8List s = value.sublist(32, 64);

  return value.length == 64 &&
      _compare(r, _ecGroupOrder as Uint8List) < 0 &&
      _compare(s, _ecGroupOrder as Uint8List) < 0;
}