Sean Bowe
|
da5f1d3e37
|
Update to latest rustfmt
|
2018-05-17 11:59:20 -06:00 |
|
Sean Bowe
|
2d12b9a858
|
Apply newer rustfmt rules.
|
2018-03-29 11:18:15 -06:00 |
|
Sean Bowe
|
53083f4290
|
Apply rustfmt to the codebase.
|
2018-02-21 11:08:58 -07:00 |
|
Sean Bowe
|
b971bdedda
|
Rename divn/muln to shr/shl.
|
2018-02-13 17:07:10 -07:00 |
|
Sean Bowe
|
a0fcf717c8
|
add_nocarry and sub_noborrow should no longer return anything.
|
2018-02-13 16:41:10 -07:00 |
|
Sean Bowe
|
b8394bf14d
|
Fix some comments.
|
2017-11-26 03:09:06 -07:00 |
|
Sean Bowe
|
4fe3e1d6e3
|
Use associated constants for simple constants like these. (Closes #39.)
|
2017-09-28 16:08:56 -06:00 |
|
Sean Bowe
|
93e2a132b5
|
Mask rather than divn, closes #50.
|
2017-09-28 13:15:29 -06:00 |
|
str4d
|
3ef34b750c
|
Move benchmarks under benches/ so tests compile on stable
Closes #36.
|
2017-09-27 17:45:24 +01:00 |
|
Michele Orrù
|
2ac2d1213d
|
Some (easy) cleanups as suggested from @daira.
Thanks!
|
2017-08-23 19:17:20 +02:00 |
|
Michele Orrù
|
a86d0b7270
|
s/Q/Quadratic/ in LegendreSymbol enum.
Proposed by @ebfull.
|
2017-08-23 19:10:34 +02:00 |
|
Michele Orrù
|
6feb0f802f
|
Merge traits SqrtField and LegendreField into SqrtField.
|
2017-08-23 19:08:00 +02:00 |
|
Michele Orrù
|
57b4e73627
|
Create enum for LegendreSymbol, fix test.
|
2017-08-23 19:06:43 +02:00 |
|
Michele Orrù
|
1b6cf85251
|
Add Legendre symbol for Fq and Fq2.
|
2017-08-23 19:04:56 +02:00 |
|
Jason Davies
|
b893aa17ac
|
Remove redundant use.
|
2017-08-14 22:15:24 +01:00 |
|
Jason Davies
|
b1d981e916
|
Replace inline value with const.
|
2017-08-14 17:16:21 +01:00 |
|
Jason Davies
|
d2f47cfa2d
|
Fix minor typos in comments/docs.
|
2017-08-14 09:47:23 +01:00 |
|
Sean Bowe
|
6410bdf998
|
Adopt idiomatic code suggestions.
|
2017-07-31 09:39:57 -06:00 |
|
Sean Bowe
|
40ec989184
|
Add (not particularly efficient) from_str to PrimeField.
|
2017-07-30 00:47:24 -06:00 |
|
Sean Bowe
|
dcca363d1b
|
Add muln() to PrimeFieldRepr along with tests for muln/divn.
|
2017-07-29 23:20:59 -06:00 |
|
Sean Bowe
|
9af0c7dd30
|
PrimeFieldRepr::divn() should accept u32.
|
2017-07-29 22:50:48 -06:00 |
|
Sean Bowe
|
1a481bc741
|
PrimeField::s() should return u32.
|
2017-07-29 22:47:06 -06:00 |
|
Sean Bowe
|
176c77d602
|
Random encoding/decoding tests for PrimeFieldRepr. Closes #3.
|
2017-07-18 11:18:42 -06:00 |
|
Sean Bowe
|
2bfce59d8e
|
Offer read_be and write_be utilities to simplify code, and for testing.
|
2017-07-18 08:58:58 -06:00 |
|
Sean Bowe
|
1d4710a39e
|
Consistently use Debug and Display.
|
2017-07-18 08:58:58 -06:00 |
|
Sean Bowe
|
1027dda432
|
Carry the interpreted value of the encoding through the error.
|
2017-07-18 08:58:58 -06:00 |
|
Sean Bowe
|
09531d0810
|
Add error logic to decoding methods.
|
2017-07-18 08:58:58 -06:00 |
|
Sean Bowe
|
e72660056e
|
Ordering cleanup for Fq/Fq2, with documentation. Closes #9.
|
2017-07-15 15:32:37 -06:00 |
|
Sean Bowe
|
d438f16628
|
Use divn when rightshifting during rand().
|
2017-07-14 11:41:40 -06:00 |
|
Sean Bowe
|
bafb273a6c
|
Simplify doubling code during squaring routine.
|
2017-07-11 23:49:33 -06:00 |
|
Sean Bowe
|
ae69eb01b3
|
Small adjustments to satisfy clippy.
|
2017-07-11 17:10:32 -06:00 |
|
Sean Bowe
|
a06216f24b
|
Initial commit
|
2017-07-08 10:55:43 -06:00 |
|