Commit Graph

15 Commits (f5791207bed1c0c1248fe5eb4f3427e3c5ab232c)

Author SHA1 Message Date
David Nuñez f5791207be Fixed bug in from_int 2017-12-28 13:09:58 +01:00
David Nuñez 07a6e4bb6b Changed __div__ to div modulo the order of the curve 2017-12-27 18:02:53 +01:00
tuxxy f22622bece
Add lambda_coeff and poly_eval math utility functions to utils
Fix syntax to be more uniform
2017-12-27 07:29:59 -07:00
tuxxy 7946b96117
Implement __eq__ on BigNum 2017-12-27 05:25:42 -07:00
tuxxy 41ab6080fb
Implement __pow__ with integer handling for __pow__ and __mod__ 2017-12-27 04:56:40 -07:00
tuxxy 6023933e54
Implement __mod__ for BigNum 2017-12-27 04:23:03 -07:00
tuxxy 29d8457029
Fix dunder operator usage for invert and division 2017-12-27 04:20:40 -07:00
tuxxy c4bc668931 Add class method from_int 2017-12-24 12:57:02 -07:00
tuxxy 77fb96a051 Implement __sub__ on BigNum 2017-12-24 12:45:30 -07:00
tuxxy f254154dc5 Implement __add__ on BigNum 2017-12-24 12:42:33 -07:00
tuxxy 3a99b8e4c5 Implement __inv__ on BigNum 2017-12-24 12:39:44 -07:00
tuxxy e9162b2a06 Implement __div__ on BigNum 2017-12-24 12:34:48 -07:00
tuxxy 37ca2f3d54 Implement __mul__ on BigNum 2017-12-24 12:31:18 -07:00
tuxxy 823dd8d794 Add BigNum class method gen_rand 2017-12-24 12:21:06 -07:00
tuxxy 115816b5c9 Add empty files for bignum and point 2017-12-23 13:28:05 -07:00