| 54 | } |
| 55 | |
| 56 | bool CRangeCheck::operator()() { |
| 57 | assert(val->IsCommitment()); |
| 58 | |
| 59 | if (!CachingRangeProofChecker(store).VerifyRangeProof(rangeproof, val->vchCommitment, assetCommitment, scriptPubKey, secp256k1_ctx_verify_amounts)) { |
| 60 | error = SCRIPT_ERR_RANGEPROOF; |
| 61 | return false; |
| 62 | } |
| 63 | |
| 64 | return true; |
| 65 | }; |
| 66 | |
| 67 | bool CBalanceCheck::operator()() { |
| 68 | if (!secp256k1_pedersen_verify_tally(secp256k1_ctx_verify_amounts, vpCommitsIn.data(), vpCommitsIn.size(), vpCommitsOut.data(), vpCommitsOut.size())) { |
nothing calls this directly
no test coverage detected