Class: PKey::EC

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

Instance Method Summary collapse

Instance Method Details

#private_key_hexObject



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

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

#pubkey_compressed?Boolean

Returns:

  • (Boolean)


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

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

#public_key_hexObject



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

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