Class: PKey::EC::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/bitcoin.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.bn2mpi(hex) ⇒ Object



475
# File 'lib/bitcoin.rb', line 475

def self.bn2mpi(hex) BN.from_hex(hex).to_mpi; end

.from_hex(group, hex) ⇒ Object



471
472
473
# File 'lib/bitcoin.rb', line 471

def self.from_hex(group, hex)
  new(group, BN.from_hex(hex))
end

Instance Method Details

#ec_add(point) ⇒ Object



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

#to_hexObject



474
# File 'lib/bitcoin.rb', line 474

def to_hex; to_bn.to_hex; end