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



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

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

.from_hex(group, hex) ⇒ Object



542
543
544
# File 'lib/bitcoin.rb', line 542

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

Instance Method Details

#ec_add(point) ⇒ Object



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

#to_hexObject



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

def to_hex; to_bn.to_hex; end