Data update
This commit is contained in:
parent
61b93a2cd1
commit
5af6d93694
858 changed files with 20572 additions and 2082 deletions
|
|
@ -1,89 +1,101 @@
|
|||
use Digest::SHA256::Native;
|
||||
module EC {
|
||||
use FiniteField;
|
||||
|
||||
# Following data taken from the C entry
|
||||
our (\A,\B,\P,\O,\Gx,\Gy) = (355, 671, 1073741789, 1073807281, 13693, 10088);
|
||||
our class Point {
|
||||
has ($.x, $.y);
|
||||
submethod TWEAK { fail unless $!y**2 == $!x**3 + $*a*$!x + $*b }
|
||||
multi method gist(::?CLASS:U:) { "Point at Horizon" }
|
||||
multi method new($x, $y) { samewith :$x, :$y }
|
||||
}
|
||||
multi infix:<==>(Point:D $A, Point:D $B) is export { $A.x == $B.x and $A.y == $B.y }
|
||||
|
||||
#`{ Following data taken from the Julia entry; 256-bit; tested | ||||