toHex method

String toHex()

converts result of to_bytes to hexadecimal string

Implementation

String toHex() {
  final bytes = toBytes(segwit: hasSegwit);
  return bytesToHex(bytes);
}