546
# File 'lib/bitcoin.rb', line 546 def self.bn2mpi(hex) BN.from_hex(hex).to_mpi; end
542 543 544
# File 'lib/bitcoin.rb', line 542 def self.from_hex(group, hex) new(group, BN.from_hex(hex)) end
547
# File 'lib/bitcoin.rb', line 547 def ec_add(point); self.class.new(group, OpenSSL::BN.from_hex(OpenSSL_EC.ec_add(self, point))); end
545
# File 'lib/bitcoin.rb', line 545 def to_hex; to_bn.to_hex; end