Commit Graph

23 Commits

Author SHA1 Message Date
Eirik Ogilvie-Wigley 8a2b51bf36 Replace try! macro 2019-08-20 18:24:47 -06:00
Eirik Ogilvie-Wigley 22c67f3317 cargo fmt 2019-08-15 10:41:48 -06:00
str4d 312141c7fc Clarify masking of bits in Field::random impls
Co-Authored-By: Daira Hopwood <daira@jacaranda.org>
2019-07-26 19:43:42 +01:00
Jack Grigg 8b6e6b15ae Migrate ff to rand_core 0.3 (used by rand 0.5) 2019-07-19 00:35:06 +02:00
Sean Bowe 44b601b0a9 Adjust versions 2018-07-02 08:34:26 -06:00
Jack Grigg 4c984595e5
Add full paths for some manually-implemented derives
This further reduces the difference between pairing's manual and derived
implementations.
2018-07-02 09:16:42 +01:00
Jack Grigg 623dbd0d74
[MOVEONLY] Move generated code around slightly in ff_derive
This reduces the differences in the generated code between the current
implementations of Fq and Fr in pairing, and their derived versions.
2018-07-02 09:16:42 +01:00
Jack Grigg b0b754ba04
Return constants and sqrt impls separately for individual rendering 2018-07-02 09:16:42 +01:00
Jack Grigg 5a48059a14
Integrate changes to trait impls from pairing into ff_derive 2018-07-02 09:16:42 +01:00
Jack Grigg 29a9161981
Implement changes to traits in ff_derive 2018-07-02 09:16:42 +01:00
Jack Grigg 1a3a2bec74
Update other ff_derive dependencies 2018-06-28 10:18:55 -04:00
Jack Grigg 428f463555
Migrate ff_derive to syn 0.14 and quote 0.6 2018-06-28 10:17:57 -04:00
Jack Grigg 755fc7aba8
cargo fmt 2018-06-27 07:31:53 -04:00
Sean Bowe 134b53e812 Version bump. 2017-06-27 09:41:33 -06:00
Sean Bowe bbc7b44f88 Comments and slight refactoring. 2017-06-27 09:40:58 -06:00
Sean Bowe b1f392ac99 Add multiplicative generator and other useful constants. 2017-06-27 09:14:24 -06:00
Sean Bowe 9aceb63e7e Add Tonelli-Shanks sqrt for 1 mod 16 primes. 2017-06-26 23:22:41 -06:00
Sean Bowe bbbd397b80 Add more efficient squaring implementation. 2017-06-26 14:42:47 -06:00
Sean Bowe e6ad371dd7 Remove dead code. 2017-06-26 13:53:55 -06:00
Sean Bowe 03952704b7 Absolute path to rand. 2017-06-26 12:07:23 -06:00
Sean Bowe 13a822f994 Add auto-derivation of prime fields, and modify the traits a little bit. 2017-06-26 11:47:35 -06:00
Sean Bowe cf7d7e823b Add more stuff to the Cargo.toml files. 2017-06-25 23:12:40 -06:00
Sean Bowe b11ea2db25 Initial commit. 2017-06-25 23:09:43 -06:00