Commit Graph

12005 Commits

Author SHA1 Message Date
jl777
758197cea0 test 2016-11-15 16:33:19 -03:00
Simon
9ddb6ad028 Mempool will accept tx with joinsplits and the default z_sendmany fee.
Issue #1851 shows that a zaddr->taddr can be rejected from mempools
due to not meeting fee requirements given the size of the transaction.
Fee calculation for joinsplit txs has not yet been agreed upon, so
during this interim period, this patch ensures  joinsplit txs using
the default fee are not rejected due to an insufficient fee.
2016-11-15 11:32:59 -08:00
jl777
29c91a290b test 2016-11-15 16:31:44 -03:00
jl777
15649f727d test 2016-11-15 16:28:56 -03:00
Sean Bowe
3e2e8b5b42 Add test that last and element will throw exception when the tree is blank. 2016-11-15 12:17:19 -07:00
jl777
41d80d3bc7 test 2016-11-15 16:15:14 -03:00
jl777
03ee4b8f89 test 2016-11-15 16:07:46 -03:00
Simon
ba0625f25d Set default minrelaytxfee to 1000 zatoshis to match upstream.
A txout will be considered dust when it has a value <546 zatoshis.
Helps to address #1719.
2016-11-15 10:48:51 -08:00
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