Class: OpenSSL::BN

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_hex(hex) ⇒ Object



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

def self.from_hex(hex); new(hex, 16); end

Instance Method Details

#to_hexObject



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

def to_hex; to_i.to_s(16); end

#to_mpiObject



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

def to_mpi; to_s(0).unpack("C*"); end