class ECC::S256Point

Public Class Methods

curve() click to toggle source
# File lib/elliptic-lite/secp256k1.rb, line 10
def self.curve() @curve ||= Curve.new( a: 0, b: 7, f: S256Field ); end

Public Instance Methods

inspect() click to toggle source
# File lib/elliptic-lite/secp256k1.rb, line 12
def inspect   ## change to fixed 64 char hexstring for x/y
  if infinity?
    "#{self.class.name}(:infinity)"
  else
    "#{self.class.name}(#{'0x%064x' % @x},#{'0x%064x' % @y})"
  end
end