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