Commit Graph

200 Commits

Author SHA1 Message Date
Kevaundray Wedderburn b8278c7adc fix bug in halve method 2020-05-11 19:21:35 +01:00
Kevaundray Wedderburn 3e13e4ffe3 Format comments and explain the variance from paper 2020-05-09 20:44:09 +01:00
Kevaundray Wedderburn 8fcaa0305a clean up test and fix wrong import 2020-05-09 20:42:25 +01:00
Kevaundray Wedderburn e5b9508a6f Extensible:
- Refactor EC methods to match the Twisted Edwards Curve Revisited paper
2020-05-09 20:17:07 +01:00
Kevaundray Wedderburn 4794b6e8b5 cargo fmt 2020-05-09 20:11:26 +01:00
Kevaundray Wedderburn d496cd4b5b Clean up to_extended method and move conditionally negatable under subtle trait implementation 2020-05-09 20:11:04 +01:00
Kevaundray Wedderburn 7311d13a6a Remove all unused constants and rename the constants that are for TWISTED-GOLDILOCKS explicitly 2020-05-09 20:10:19 +01:00
Kevaundray Wedderburn 8e2f3a1f59 Remove all field arithmetic with no reductions from the EC layer 2020-05-09 18:27:59 +01:00
Kevaundray Wedderburn 2fd3866c92 clean up scalar mul in goldilocks 2020-05-09 18:03:28 +01:00
Kevaundray Wedderburn fc95a07299 Scalar : Make one() and zero constant functions 2020-05-09 17:06:40 +01:00
Kevaundray Wedderburn 310a3b9f3e update readme 2020-05-09 17:01:23 +01:00
Kevaundray Wedderburn a9c5f58347 Add one-way test for Goldilocks to Montgomery 2020-05-09 17:01:03 +01:00
Kevaundray Wedderburn bb0c36f5ab Change method name to div_by_four 2020-05-08 23:22:40 +01:00
Kevaundray Wedderburn 1f02caf087 update readme 2020-05-08 23:13:47 +01:00
Kevaundray Wedderburn 7a239a902d cargo fmt 2020-05-08 23:13:30 +01:00
Kevaundray Wedderburn 19a7149b35 use generic strategy for scalar mul 2020-05-08 23:13:14 +01:00
Kevaundray Wedderburn ef19c36431 Scalar : add floor(scalar/4) method 2020-05-08 23:08:57 +01:00
Kevaundray Wedderburn 0757533749 Implement constant time equals for Scalar 2020-05-07 22:46:24 +01:00
Kevaundray Wedderburn e1d8c3dc32 Move Scalar adjustment factor into signed multi comb file directly 2020-05-07 22:39:40 +01:00
Kevaundray Wedderburn b25bcc4f74 Add in-efficient double base scalar mul 2020-05-07 22:39:13 +01:00
Kevaundray Wedderburn fbbaad7dcf Remove AffineNiels Table while its not being used 2020-05-07 22:38:31 +01:00
Kevaundray Wedderburn 3a18561a4e Rename package to Ed448-Goldilocks 2020-05-07 21:18:28 +01:00
Kevaundray Wedderburn 6335618266 Fix credits and add a bear 2020-05-07 21:18:09 +01:00
Kevaundray Wedderburn 29207f91f2 Remove starter test 2020-05-07 21:17:41 +01:00
Kevaundray Wedderburn e78e26c8fc Affine; Twisted_Edwards : Use correct D and fix tests to match this 2020-05-07 21:16:37 +01:00
Kevaundray Wedderburn 4497a4d41c Extended: Add comments 2020-05-07 21:16:03 +01:00
Kevaundray Wedderburn 9d411d6be6 Add TWISTED_D as a constant 2020-05-07 21:15:29 +01:00
Kevaundray Wedderburn 1e4781a6f1 - Add comments
- Remove un-necessary test
- Remove redundant equals methods
2020-05-07 21:14:42 +01:00
Kevaundray Wedderburn 9cb14a1eb9 Fq: Remove field element specific tests, so they do not need to be repeated per backend 2020-05-04 20:42:46 +01:00
Kevaundray Wedderburn 0a61fe29cf update cargo.toml 2020-05-04 20:01:41 +01:00
Kevaundray Wedderburn 736cca8bc9 expose to_bytes method 2020-05-04 20:01:16 +01:00
Kevaundray Wedderburn 2bccbd4f69 update toml 2020-05-04 19:50:49 +01:00
Kevaundray Wedderburn db20467ea7 expose scalar 2020-05-04 19:50:23 +01:00
Kevaundray Wedderburn dc160ed9ed cargo toml : set version to 0.2 2020-05-04 19:43:09 +01:00
Kevaundray Wedderburn 53e7005aa2 - Expose Montgomery and EdwardsPoint
- Remove visibility of the Field
2020-05-04 19:42:30 +01:00
Kevaundray Wedderburn 5ef7d51510 Remove extra keywords from cargo 2020-05-04 19:27:03 +01:00
Kevaundray Wedderburn 85f2feba17 exclude github file from package 2020-05-04 19:25:42 +01:00
Kevaundray Wedderburn 6dbe33864f cargo.toml add cargo information 2020-05-04 19:23:53 +01:00
Kevaundray Wedderburn f2d751f8f2 gitignore 2020-05-04 19:18:27 +01:00
Kevaundray Wedderburn ca62b8a21a fmt 2020-05-04 19:17:58 +01:00
Kevaundray Wedderburn d2514fa1a6 change package name 2020-05-04 19:17:25 +01:00
Kevaundray Wedderburn b0fd3ff846 Add generator for goldilocks and twisted variant 2020-05-03 21:00:11 +01:00
Kevaundray Wedderburn 80c6d8ef56 Add test for generator through the 2-isogeny 2020-05-03 20:59:46 +01:00
Kevaundray Wedderburn 3e19e2e4db multi:
- Define Basepoint for goldilocks and twisted variant
- Refactor DECAF_BASE_POINT to use Twisted edwards basepoint
2020-05-03 20:52:03 +01:00
Kevaundray Wedderburn e48ac4b825 update readme 2020-05-03 20:50:01 +01:00
Kevaundray Wedderburn 781892e61a cargo fmt 2020-05-03 20:22:06 +01:00
Kevaundray Wedderburn 7d7d76aa98 Expose montgomery and goldilocks curve in the API 2020-05-03 20:21:32 +01:00
Kevaundray Wedderburn e829b84379 API: expose CompressedEdwardsY struct 2020-05-03 20:20:45 +01:00
Kevaundray Wedderburn e3dc7b2929 edwards: clean up decompress method; remove unecessary sign shift and double reduction 2020-05-03 20:20:24 +01:00
Kevaundray Wedderburn 30813395dd multi:
- Move window module into `scalar_mul` module
2020-05-03 20:03:27 +01:00