class OpenSSL::BN

Public Class Methods

from_hex(hex) click to toggle source
# File lib/ruby_bitcoin_wallet/open_ssl.rb, line 5
def self.from_hex(hex); new(hex, 16); end

Public Instance Methods

to_hex() click to toggle source
# File lib/ruby_bitcoin_wallet/open_ssl.rb, line 6
def to_hex; to_i.to_s(16); end
to_mpi() click to toggle source
# File lib/ruby_bitcoin_wallet/open_ssl.rb, line 7
def to_mpi; to_s(0).unpack("C*"); end