mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
CT: Switch to standard CConfidentialValue::IsCommitment() API instead checking the size of the commitment vector directly
This commit is contained in:
parent
d081aeda5e
commit
71d52fa0b6
1 changed files with 1 additions and 1 deletions
|
|
@ -1280,7 +1280,7 @@ bool VerifyAmounts(const CCoinsViewCache& cache, const CTransaction& tx, std::ve
|
|||
return false;
|
||||
}
|
||||
else {
|
||||
assert(val.vchCommitment.size() == CConfidentialValue::nCommittedSize);
|
||||
assert(val.IsCommitment());
|
||||
if (secp256k1_pedersen_commitment_parse(secp256k1_ctx_verify_amounts, &commit, &val.vchCommitment[0]) != 1)
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue