472
# File 'lib/bitcoin.rb', line 472 def self.bn2mpi(hex) BN.from_hex(hex).to_mpi; end
468 469 470
# File 'lib/bitcoin.rb', line 468 def self.from_hex(group, hex) new(group, BN.from_hex(hex)) end
473
# File 'lib/bitcoin.rb', line 473 def ec_add(point); self.class.new(group, OpenSSL::BN.from_hex(OpenSSL_EC.ec_add(self, point))); end
471
# File 'lib/bitcoin.rb', line 471 def to_hex; to_bn.to_hex; end