Class: OpenSSL::PKey::EC::Point

Inherits:
Object
  • Object
show all
Includes:
MoneyTree::OpenSSLExtensions
Defined in:
lib/openssl_extensions.rb

Constant Summary

Constants included from MoneyTree::OpenSSLExtensions

MoneyTree::OpenSSLExtensions::NID_secp256k1, MoneyTree::OpenSSLExtensions::POINT_CONVERSION_COMPRESSED, MoneyTree::OpenSSLExtensions::POINT_CONVERSION_UNCOMPRESSED

Instance Method Summary collapse

Methods included from MoneyTree::OpenSSLExtensions

add, validate_points

Instance Method Details

#add(point) ⇒ Object



68
69
70
71
# File 'lib/openssl_extensions.rb', line 68

def add(point)
  sum_point_hex = MoneyTree::OpenSSLExtensions.add(self, point)
  self.class.new group, OpenSSL::BN.new(sum_point_hex, 16)
end