CT/CA: Unify CTxOutAsset and CTxOutValue into a single templated abstract base class

This commit is contained in:
Mark Friedenbach 2017-03-10 03:03:48 -08:00 committed by Gregory Sanders
parent 9ebe6371a1
commit a2c0f11f8e
21 changed files with 163 additions and 234 deletions

View file

@ -177,7 +177,7 @@ bool CachingSurjectionProofChecker::VerifySurjectionProof(secp256k1_surjectionpr
secp256k1_surjectionproof_serialize(secp256k1_ctx_verify_amounts, &vchproof[0], &proof_len, &proof);
std::vector<unsigned char> vchGen;
vchGen.resize(CTxOutValue::nCommittedSize);
vchGen.resize(CConfidentialValue::nCommittedSize);
secp256k1_generator_serialize(secp256k1_ctx_verify_amounts, &vchGen[0], &gen);
CPubKey pubkey(vchGen);