assumeCompression function

bool assumeCompression(
  1. bool? value,
  2. Uint8List? pubkey
)

Assume Compression

Implementation

bool assumeCompression(bool? value, Uint8List? pubkey) {
  if (value == null && pubkey != null) return _isPointCompressed(pubkey);
  if (value == null) return true;
  return value;
}