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