569
# File 'lib/bitcoin.rb', line 569 def self.bn2mpi(hex) BN.from_hex(hex).to_mpi; end
565 566 567
# File 'lib/bitcoin.rb', line 565 def self.from_hex(group, hex) new(group, BN.from_hex(hex)) end
570
# File 'lib/bitcoin.rb', line 570 def ec_add(point); self.class.new(group, OpenSSL::BN.from_hex(OpenSSL_EC.ec_add(self, point))); end
568
# File 'lib/bitcoin.rb', line 568 def to_hex; to_bn.to_hex; end