Commit Graph

22 Commits

Author SHA1 Message Date
NikVolf 563ec0db3c from_slice for u512 2019-03-13 17:22:25 +03:00
NikVolf 8eac5b8a10 remove duplicated inline 2019-03-12 15:50:15 +03:00
NikVolf e9f64f518d add some initializers 2019-03-12 14:44:46 +03:00
André Silva 9f1acd94df use u128 for bigint limbs (#9)
* update to rand 0.5

* use u128 for bigint limbs
2018-07-25 16:51:04 +03:00
Vurich ffbf39b7e2 Speed up bigint impl 2018-03-26 16:23:16 +02:00
Vurich 7638ee60a5 rustfmt 2018-03-26 16:23:16 +02:00
Pierre Krieger 43584c4c03 Make rustc-serialize optional 2018-03-26 14:58:59 +02:00
NikVolf e749d4577a to big endian for elments 2017-03-22 13:56:28 +03:00
NikVolf 1645afdbec make some algebra usable 2017-03-22 02:44:14 +03:00
NikVolf 83382aac55 add from_slice for U256 2017-03-22 01:35:55 +03:00
Sean Bowe dab7fdf411 Use U512 division for Fp randomness, add Fr interpretation to API. 2016-09-18 11:22:53 -06:00
Sean Bowe b582ba749b Split off U512 interpretation. 2016-09-18 11:04:18 -06:00
Sean Bowe fbefb710cf Ensure divrem always returns remainder. 2016-09-18 10:23:59 -06:00
Sean Bowe 76344a7ae9 Fq2 serialization according to spec. 2016-09-18 05:04:19 -06:00
Sean Bowe b20157fef1 Clean up U256 serialization. 2016-09-18 04:08:56 -06:00
Sean Bowe fe3dfc3e29 Implement U512 from/divrem. 2016-09-18 03:28:15 -06:00
Sean Bowe 3e40981e3f Make set_bit inform instead of asserting. 2016-09-18 01:47:54 -06:00
Sean Bowe 3e5b7179c1 Factor out get_bit. 2016-09-18 01:42:51 -06:00
Sean Bowe 3ebd527167 Use macros to instantiate finite fields. 2016-09-14 21:30:38 -06:00
Sean Bowe cb2ff5c1ad Added serialization and test vectors for U256 and Fp elements. 2016-09-07 16:45:55 -06:00
Sean Bowe 77df6c9ee5 Arithmetic cleanup and optimization. 2016-09-07 16:45:52 -06:00
Sean Bowe 671d112c9c New arithmetic and G1/G2 implementations. 2016-09-04 03:50:46 -06:00