Class: PKey::EC

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_bitcoin_wallet/open_ssl.rb

Instance Method Summary collapse

Instance Method Details

#private_key_hexObject



10
# File 'lib/ruby_bitcoin_wallet/open_ssl.rb', line 10

def private_key_hex; private_key.to_hex.rjust(64, '0'); end

#pubkey_compressed?Boolean

Returns:

  • (Boolean)


12
# File 'lib/ruby_bitcoin_wallet/open_ssl.rb', line 12

def pubkey_compressed?; public_key.group.point_conversion_form == :compressed; end

#public_key_hexObject



11
# File 'lib/ruby_bitcoin_wallet/open_ssl.rb', line 11

def public_key_hex;  public_key.to_hex.rjust(130, '0'); end