Method: Eth::Key#private_bytes

Defined in:
lib/eth/key.rb

#private_bytesString

Exports the private key bytes in a wrapper function to maintain backward-compatibility with older versions of Eth::Key.

Returns:

  • (String)

    private key as packed byte-string.



125
126
127
# File 'lib/eth/key.rb', line 125

def private_bytes
  @private_key.data
end