Daira Hopwood
|
af9834d68c
|
Implement `sqrt_alt`, a more efficient way of doing `sqrt_ratio(num, one())`.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2021-01-14 02:34:43 +00:00 |
Daira Hopwood
|
806748fbc4
|
Use addition chains for powering by (T-1)/2.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2021-01-14 02:34:43 +00:00 |
Daira Hopwood
|
227025b7b3
|
Avoid exposing implementation details of the square root implementation.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2021-01-14 02:34:43 +00:00 |
Daira Hopwood
|
e13ee2c8ff
|
Add sqrt_ratio implementation.
Co-authored-by: Jack Grigg <jack@electriccoin.co>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2021-01-14 02:34:43 +00:00 |
Sean Bowe
|
f308eb969c
|
Remove deterministic square root calculation as it's no longer needed.
|
2021-01-12 07:40:26 -07:00 |
Sean Bowe
|
c25b7e7d09
|
cargo fmt
|
2020-12-13 10:37:32 -07:00 |
Sean Bowe
|
1c0daa5478
|
Add leading zeroes to hex in some constants.
|
2020-12-11 13:25:18 -07:00 |
ebfull
|
0101014268
|
Use constants where applicable in field implementations
Co-authored-by: str4d <jack@electriccoin.co>
|
2020-12-11 11:54:32 -07:00 |
Sean Bowe
|
81345e0cf1
|
Change ZETA constant of Fp to make it consistent with the endomorphism over Fq.
|
2020-12-07 09:42:33 -07:00 |
Sean Bowe
|
95e41fcfcf
|
Rename curves to Pallas/Vesta (Pasta).
|
2020-12-03 13:47:47 -07:00 |