Method: Eth::Key#public_hex

Defined in:
lib/eth/key.rb

#public_hexString

Converts the public key data into an uncompressed hexa-decimal string.

Returns:

  • (String)

    public key as uncompressed hexa-decimal string.



133
134
135
# File 'lib/eth/key.rb', line 133

def public_hex
  Util.bin_to_hex @public_key.uncompressed
end