Skip to content

Commit ce478ea

Browse files
committed
Fix the documentation of Group#new_point to mention that it can take an integer.
1 parent d10d9d4 commit ce478ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ecdsa/group.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def initialize(opts)
6868

6969
# Creates a new point.
7070
# The argument can either be an array of integers representing the
71-
# coordinates, with x first, or it can be `:infinity`.
71+
# coordinates with x first, or it can be an integer (private key),
72+
# or it can be `:infinity`.
7273
def new_point(p)
7374
case p
7475
when :infinity

0 commit comments

Comments
 (0)