Class: PKey::EC
- Inherits:
-
Object
- Object
- PKey::EC
- Defined in:
- lib/bitcoin.rb
Instance Method Summary collapse
Instance Method Details
#private_key_hex ⇒ Object
394 |
# File 'lib/bitcoin.rb', line 394 def private_key_hex; private_key.to_hex.rjust(64, '0'); end |
#pubkey_compressed? ⇒ Boolean
396 |
# File 'lib/bitcoin.rb', line 396 def pubkey_compressed?; public_key.group.point_conversion_form == :compressed; end |
#public_key_hex ⇒ Object
395 |
# File 'lib/bitcoin.rb', line 395 def public_key_hex; public_key.to_hex.rjust(130, '0'); end |