Method: ECC::Group#initialize
- Defined in:
- lib/elliptic-lite/base.rb
#initialize(g:, n:) ⇒ Group
add generator alias for g - why? why not? add order alias for n - why? why not?
57 58 59 60 61 62 |
# File 'lib/elliptic-lite/base.rb', line 57 def initialize( g:, n: ) @g, @n = g, n ## note: generator point (scalar multiplied by n - group order results in infinity point) ## pp @n*@g #=> Point(:infinity) end |