Integrate Groth16 verification and proving.
This commit is contained in:
@@ -40,7 +40,7 @@ CWalletTx GetValidReceive(ZCJoinSplit& params,
|
||||
|
||||
// Prepare JoinSplits
|
||||
uint256 rt;
|
||||
JSDescription jsdesc {params, mtx.joinSplitPubKey, rt,
|
||||
JSDescription jsdesc {false, params, mtx.joinSplitPubKey, rt,
|
||||
inputs, outputs, 2*value, 0, false};
|
||||
mtx.vjoinsplit.push_back(jsdesc);
|
||||
|
||||
@@ -123,7 +123,7 @@ CWalletTx GetValidSpend(ZCJoinSplit& params,
|
||||
|
||||
// Prepare JoinSplits
|
||||
uint256 rt = tree.root();
|
||||
JSDescription jsdesc {params, mtx.joinSplitPubKey, rt,
|
||||
JSDescription jsdesc {false, params, mtx.joinSplitPubKey, rt,
|
||||
inputs, outputs, 0, value, false};
|
||||
mtx.vjoinsplit.push_back(jsdesc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user