Commit Graph
12147 Commits
Author SHA1 Message Date
jl777 bd99d1f236 test 2016-11-15 15:45:04 -03:00
jl777 f6356642b0 test 2016-11-15 15:36:44 -03:00
jl777 68713b786f test 2016-11-15 15:16:15 -03:00
jl777 897d3273d5 test 2016-11-15 14:57:53 -03:00
jl777 2f0645568b test 2016-11-15 14:54:20 -03:00
jl777 e9e8044e66 test 2016-11-15 14:45:45 -03:00
jl777 cdf5620346 test 2016-11-15 14:37:21 -03:00
jl777 804b9e4aa1 test 2016-11-15 14:23:56 -03:00
jl777 407de87c12 test 2016-11-15 14:22:39 -03:00
jl777 ad1796dfc9 test 2016-11-15 14:00:43 -03:00
jl777 53a3e8a06d test 2016-11-15 13:59:35 -03:00
jl777 430d6f71b0 test 2016-11-15 13:58:41 -03:00
jl777 782120ca46 test 2016-11-15 13:57:07 -03:00
jl777 be4f847b2e test 2016-11-15 13:38:56 -03:00
jl777 779d962f33 test 2016-11-15 13:37:51 -03:00
jl777 0a72b10ad5 test 2016-11-15 13:28:43 -03:00
jl777 0ad6a46368 test 2016-11-15 13:18:43 -03:00
jl777 687aa6ce8c test 2016-11-15 12:35:35 -03:00
jl777 1c2f0c49cf test 2016-11-15 12:32:01 -03:00
jl777 798f28c7d3 test 2016-11-15 12:27:14 -03:00
jl777 03ad49c4d3 test 2016-11-15 12:09:11 -03:00
jl777 72712d696f test 2016-11-15 12:07:27 -03:00
jl777 a933451cc1 test 2016-11-15 11:58:58 -03:00
jl777 c1c95e3627 test 2016-11-15 11:57:56 -03:00
jl777 d0e75beb85 test 2016-11-15 11:56:43 -03:00
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
jl777 30f036eecc test 2016-11-15 11:52:59 -03:00
jl777 b33ca600cc test 2016-11-15 11:51:35 -03:00
jl777 5076058573 test 2016-11-15 11:47:21 -03:00
jl777 485e48cabd test 2016-11-15 11:42:05 -03:00
jl777 3b97ccc9a7 test 2016-11-15 11:39:36 -03:00
jl777 b25d6fd160 test 2016-11-15 11:38:03 -03:00
jl777 49c9db6a51 test 2016-11-15 11:36:29 -03:00
jl777 98d166cfc9 test 2016-11-15 11:33:45 -03:00
jl777 ff3fb0f161 test 2016-11-15 11:23:06 -03:00
jl777 e80de3b274 test 2016-11-15 11:20:45 -03:00
jl777 ce906ce757 test 2016-11-15 11:17:55 -03:00
jl777 919b3cff75 test 2016-11-15 10:57:44 -03:00
jl777 e596e202ca test 2016-11-15 10:56:34 -03:00
jl777 7c29073fa4 test 2016-11-15 10:54:01 -03:00
jl777 f2176cec53 test 2016-11-15 10:51:04 -03:00
jl777 cd94227f89 test 2016-11-15 10:43:10 -03:00
jl777 1565e3c31e test 2016-11-15 10:39:47 -03:00
jl777 0fec0cc4b3 test 2016-11-15 10:38:38 -03:00
zkbot 4e4ca6d31b Auto merge of #1858 - str4d:1715-wallet-assertion, r=ebfull
Correctly integrate CNoteData::witnessHeight into wallet code

Closes #1715.
2016-11-15 11:16:13 +00:00
jl777 a130c5cb66 test 2016-11-15 07:47:14 -03:00
zkbot 4e72614fb0 Auto merge of #1847 - bitcartel:1680_rpckeepalive_deadlock, r=ebfull
Closes #1680, temporary fix for rpc deadlock inherited from upstream.
2016-11-15 10:25:24 +00:00
Simon f4404d7b5b Closes #1680, temporary fix for rpc deadlock inherited from upstream. 2016-11-15 00:31:24 -08:00
Jack Grigg a4ef3aa9b5 Clear witnessHeight and nWitnessCacheSize in ClearNoteWitnessCache 2016-11-15 17:53:41 +13:00
Jack Grigg ccfd8aae1d Add code comments about CNoteData::witnessHeight 2016-11-15 16:42:22 +13:00