Commit Graph

8 Commits

Author SHA1 Message Date
Jack Grigg 459fa4a635 pairing: Remove BLS12-381 implementation
It is replaced by the bls12_381 crate.
2020-08-25 23:11:18 +01:00
Jack Grigg 2e540e681c bellman: Replace E: ScalarEngine with Scalar: PrimeField
Instead of imposing the requirement that bellman users explicitly
specify an engine for every proving system, we allow the Rust type
system to figure it out for us. An engine is specifically useful in
places where we require defined relationships between several types;
ff::ScalarEngine only has one type, and thus any usage of it can be
trivially replaced by an explicit Scalar type. This is also more
readable :)
2020-08-25 23:11:05 +01:00
Jack Grigg c0cea09d13 Move from Field::negate to Neg operator 2020-08-25 23:09:46 +01:00
Jack Grigg c05b957e9d Move Field operations to operator-backed traits
The ff_derive, pairing, zcash_primitives::jubjub, and bellman dummy_engine
changes are minimally implemented on top of the existing *_assign()
functions.
2020-08-25 23:09:46 +01:00
Jack Grigg f50079f03d Crate docs 2019-09-24 14:23:59 +01:00
Jack Grigg bc697c14bb bellman: Fix compile errors without multicore feature 2019-09-12 19:38:52 +01:00
Eirik Ogilvie-Wigley e73d1a2637 cargo fmt bellman 2019-08-15 10:38:41 -06:00
Jack Grigg dfb86fcf11 Move generic circuit gadgets into bellman 2019-08-14 10:45:58 +01:00