Skip to content

Commit 01ad332

Browse files
committed
Revert "test"
This reverts commit 8cb28c2e120ad70ae14f735569c42a58f2b9f274.
1 parent f2355fd commit 01ad332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/confidential_validation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,11 @@ bool VerifyAmounts(const std::vector<CTxOut>& inputs, const CTransaction& tx, st
393393
if (asset.vchCommitment.size() != CConfidentialAsset::nCommittedSize || ptxoutwit->vchSurjectionproof.empty()) {
394394
return false;
395395
}
396-
if (secp256k1_generator_parse(secp256k1_ctx_verify_amounts, &gen, asset.vchCommitment.data()) != 1)
396+
if (secp256k1_generator_parse(secp256k1_ctx_verify_amounts, &gen, &asset.vchCommitment[0]) != 1)
397397
return false;
398398

399399
secp256k1_surjectionproof proof;
400-
if (secp256k1_surjectionproof_parse(secp256k1_ctx_verify_amounts, &proof, ptxoutwit->vchSurjectionproof.data(), ptxoutwit->vchSurjectionproof.size()) != 1)
400+
if (secp256k1_surjectionproof_parse(secp256k1_ctx_verify_amounts, &proof, &ptxoutwit->vchSurjectionproof[0], ptxoutwit->vchSurjectionproof.size()) != 1)
401401
return false;
402402

403403
if (QueueCheck(checks, new CSurjectionCheck(proof, target_generators, gen, wtxid, store_result)) != SCRIPT_ERR_OK) {

0 commit comments

Comments
 (0)