toHex method

String toHex([
  1. bool eip155 = true
])

Gets the hexadecimal representation of the 'r', 's', and 'v' components.

Optionally adjusts 'v' according to EIP-155.

Implementation

String toHex([bool eip155 = true]) {
  return BytesUtils.toHexString(toBytes(eip155));
}