Files
dragonx/src
zkbot 057ab6b4d1 Auto merge of #1760 - ebfull:vk-preprocess, r=bitcartel
Process verification keys to perform online verification

Checking proofs involves some arithmetic with pairings using components of the proof and the verification key. If you already have some curve points, like those in the verification key, you can amortize the cost of some of the more expensive arithmetic.

This PR adopts libsnark's precomputation of G2 elements in the verification key.

We *currently* call `r1cs_ppzksnark_verifier_strong_IC`:

```c++
template<typename ppT>
bool r1cs_ppzksnark_verifier_strong_IC(const r1cs_ppzksnark_verification_key<ppT> &vk,
                                       const r1cs_ppzksnark_primary_input<ppT> &primary_input,
                                       const r1cs_ppzksnark_proof<ppT> &proof)
{
    enter_block("Call to r1cs_ppzksnark_verifier_strong_IC");
    r1cs_ppzksnark_processed_verification_key<ppT> pvk = r1cs_ppzksnark_verifier_process_vk<ppT>(vk);
    bool result = r1cs_ppzksnark_online_verifier_strong_IC<ppT>(pvk, primary_input, proof);
    leave_block("Call to r1cs_ppzksnark_verifier_strong_IC");
    return result;
}
```

Notice that this merely performs precomputation of the verification key, and then calls `r1cs_ppzksnark_online_verifier_strong_IC`. This PR merely performs the precomputation during verification key initialization, and calls that function directly.
2016-11-15 14:56:22 +00:00
..
2016-10-14 13:35:22 -04:00
2015-11-04 23:48:07 +01:00
2012-04-27 10:14:33 -04:00
2016-10-04 00:45:56 -07:00
2014-12-16 15:56:50 +08:00
2016-07-15 19:57:55 -07:00
2014-12-19 19:55:32 +01:00
2014-12-19 19:55:32 +01:00
2016-09-08 21:46:15 -07:00
2016-06-17 00:21:58 +12:00
2016-09-09 00:22:18 -06:00
2016-05-21 11:48:52 +12:00
2014-12-19 19:55:32 +01:00
2016-06-17 00:21:58 +12:00
2015-05-06 11:38:39 +02:00
2015-05-06 11:38:39 +02:00
2015-05-01 11:21:27 +00:00
2016-11-07 19:03:20 -07:00
2016-07-18 10:06:18 -06:00
2016-07-18 10:06:18 -06:00
2016-10-20 00:36:32 +01:00
2014-12-31 10:50:06 +01:00
2014-12-19 19:55:32 +01:00
2016-05-12 16:44:47 -06:00
2015-05-06 18:37:49 +02:00
2015-05-06 18:37:49 +02:00
2016-09-01 11:48:15 +12:00
2014-12-19 19:55:32 +01:00
2015-05-11 17:56:48 -07:00
2015-05-01 11:21:27 +00:00
2016-11-02 14:50:00 -05:00
2015-10-23 10:02:53 +02:00
2015-05-26 08:59:13 +02:00
2014-12-19 19:55:32 +01:00
2014-12-19 19:55:32 +01:00
2016-09-08 12:22:08 +12:00
2016-09-08 12:22:08 +12:00
2014-12-19 19:55:32 +01:00
2016-11-11 11:14:18 -08:00
2015-05-16 17:59:23 -04:00
2014-12-19 19:55:32 +01:00
2016-10-25 19:48:38 +01:00
2016-07-18 10:07:30 -06:00
2016-08-13 11:12:18 -04:00
2014-12-19 19:55:32 +01:00