Commit Graph

130 Commits

Author SHA1 Message Date
Maciej Zieliński 635c4cdd56 Making bn no_std. Exposing miller_loop_batch and final_exponentiation. (#16) 2020-01-21 05:44:14 -08:00
Nikolay Volf b1611b623e Add cargo check in CI (#17)
I think `cargo test` alone might leak std features?
2020-01-21 04:40:50 -08:00
Nikolay Volf 6079255e65 Merge pull request #15 from paritytech/dp/chore/use-const-ate_loop_count_naf
Prefer const over vec
2019-05-31 11:20:50 +03:00
David Palm e2173f16fa Prefer const over vec
As suggested https://github.com/paritytech/bn/pull/14#issuecomment-496635940
2019-05-29 14:21:57 +02:00
Nikolay Volf 6beba2ed6c Merge pull request #14 from AztecProtocol/add-wnaf
Add wnaf
2019-05-28 17:44:16 +03:00
zac-williamson 65d150fd3e updated miller loop to use NAF 2019-04-30 22:54:48 +01:00
zac-williamson 93ac8ca69e pairing_batch: renamed p_vec, q_vec to ps, qs 2019-04-30 13:22:27 +01:00
Nikolay Volf 67df95d066 Merge pull request #13 from AztecProtocol/master
added efficient batch pairing
2019-04-29 18:01:46 +03:00
zac-williamson cec2ce53ba added more tests to batch pairing 2019-04-26 21:06:19 +01:00
zac-williamson f094b8ab46 added efficient batch pairing 2019-04-26 19:58:09 +01:00
Nikolay Volf 162149011c Merge pull request #12 from paritytech/upgrade2
Square roots and compressed points deserialization
2019-04-17 12:01:16 +03:00
NikVolf 6d28d953ec g2 from compressed 2019-04-16 17:36:12 +03:00
NikVolf 84b015c3c1 fq2 sqrt 2019-04-16 17:22:14 +03:00
NikVolf 6cf2403e24 test for sqrt 2019-04-16 16:56:48 +03:00
NikVolf 309ab3c579 g1 from compressed api 2019-04-16 16:51:52 +03:00
Nikolay Volf 7f6a93623f Merge pull request #11 from paritytech/upgrade2
Add constructors for Fr
2019-04-10 13:53:53 +03:00
NikVolf 78fddbb743 add set_bit for fr 2019-04-08 17:57:27 +03:00
NikVolf 5c41e9fda0 ord and partial ord for u512 2019-04-08 17:25:27 +03:00
NikVolf 38d4c228ef add into u256 2019-04-04 15:46:15 +03:00
NikVolf 2ab2983c15 also for g2 2019-04-02 16:57:07 +03:00
NikVolf b3e47339dc add debug impls 2019-04-02 16:55:04 +03:00
NikVolf 8cb6e45ca6 fix api also 2019-03-26 16:08:53 +03:00
NikVolf 6e5e26a3bc Merge remote-tracking branch 'origin/master' into upgrade2 2019-03-26 16:03:53 +03:00
NikVolf c51e25991f add constructors for fr 2019-03-26 16:00:54 +03:00
Nikolay Volf 5a4cedc22d Merge pull request #10 from paritytech/upgrade
Upgrade api for crypto primitives
2019-03-15 14:08:42 +03:00
NikVolf 563ec0db3c from_slice for u512 2019-03-13 17:22:25 +03:00
NikVolf 39aef57c2f modulus 2019-03-13 16:34:48 +03:00
NikVolf 68d901f0d1 some more api exposure 2019-03-13 16:13:00 +03:00
NikVolf 76c1296cfe real/imagianry part exposure 2019-03-13 12:46:56 +03:00
NikVolf 7395ad6d1d add into u256 2019-03-13 12:43:05 +03:00
NikVolf 187a608dbb change pow func 2019-03-13 12:40:25 +03:00
NikVolf e8390af8a6 add derives 2019-03-13 12:35:21 +03:00
NikVolf 568746fcf2 impl operations for fq2 2019-03-13 12:33:07 +03:00
NikVolf 4470c2ecfc more api 2019-03-13 12:27:07 +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 2a71dbde5c Merge pull request #8 from tomaka/fix-group-traits
Fix rustc_serialize feature non-additive
2018-07-25 15:11:58 +01:00
André Silva 45d5e0bd60 Merge branch 'master' into fix-group-traits 2018-07-25 15:06:55 +01: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
Nikolay Volf 786c0d5643 Merge pull request #6 from Vurich/master
Speed up bigint impl
2018-03-26 22:52:53 +08: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 c5e6e77be0 Fix rustc_serialize feature non-additive 2018-03-26 16:14:33 +02:00
Pierre Krieger 964b48fad5 Merge pull request #7 from tomaka/rustc-ser-opt
Make rustc-serialize optional
2018-03-26 15:38:13 +02:00
Pierre Krieger 86f751ed0b Remove 'static requirement 2018-03-26 15:20:59 +02:00
Pierre Krieger 43584c4c03 Make rustc-serialize optional 2018-03-26 14:58:59 +02:00
Nikolay Volf f3936c006e Merge pull request #5 from tomaka/test-not-test
Fix a test not marked as #[test]
2018-03-14 17:34:40 +03:00
Pierre Krieger ef13f08dc7 Fix a test not marked as #[test] 2018-03-14 12:14:52 +01:00
Nikolay Volf c9831a8d10 Merge pull request #4 from arkpar/master
Added iz_zero for Fq2
2017-09-08 20:51:13 +02:00
Nikolay Volf f121cb50ea Merge pull request #3 from cdetrio/mont-repr-fix
patchy fixes for elliptic pairing precompiles
2017-09-08 20:38:16 +02:00