toRawBytes method

Uint8List toRawBytes([
  1. bool isCompressed = true
])

Encode point to Uint8Array.

Implementation

Uint8List toRawBytes([bool isCompressed = true]) {
  // re-use toHex(), convert hex to bytes
  return Utilities.hexToBytes(toHex(isCompressed));
}