toBytes method

Uint8List toBytes({
  1. int? prefix = 0x04,
})

returns the unCompressed key's raw bytes

Implementation

Uint8List toBytes({int? prefix = 0x04}) {
  if (prefix != null) {
    return Uint8List.fromList([prefix, ..._key]);
  }
  return Uint8List.fromList([..._key]);
}