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



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

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

.from_hex(group, hex) ⇒ Object



477
478
479
# File 'lib/bitcoin.rb', line 477

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

Instance Method Details

#ec_add(point) ⇒ Object



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

def ec_add(point); self.class.new(group, OpenSSL::BN.from_hex(OpenSSL_EC.ec_add(self, point))); end

#to_hexObject



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

def to_hex; to_bn.to_hex; end