Class: PKey::EC

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

Instance Method Summary collapse

Instance Method Details

#private_key_hexObject



463
# File 'lib/bitcoin.rb', line 463

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

#pubkey_compressed?Boolean

Returns:

  • (Boolean)


465
# File 'lib/bitcoin.rb', line 465

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

#public_key_hexObject



464
# File 'lib/bitcoin.rb', line 464

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