Class: OpenSSL::BN
- Inherits:
-
Object
- Object
- OpenSSL::BN
- Defined in:
- lib/bitcoin.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_hex(hex) ⇒ Object
555 |
# File 'lib/bitcoin.rb', line 555 def self.from_hex(hex); new(hex, 16); end |
Instance Method Details
#to_hex ⇒ Object
556 |
# File 'lib/bitcoin.rb', line 556 def to_hex; to_i.to_s(16); end |
#to_mpi ⇒ Object
557 |
# File 'lib/bitcoin.rb', line 557 def to_mpi; to_s(0).unpack("C*"); end |