Method: Eth::Key#private_hex

Defined in:
lib/eth/key.rb

#private_hexString

Converts the private key data into a hexa-decimal string.

Returns:

  • private key as hexa-decimal string.



117
118
119
# File 'lib/eth/key.rb', line 117

def private_hex
  Util.bin_to_hex @private_key.data
end