Enable binary serializations of proofs and r1cs keys, and make the CPourTx proof field fixed-size.

This commit is contained in:
Sean Bowe
2016-05-23 09:47:23 -06:00
parent 9cf13a3e85
commit 9285bba885
10 changed files with 22 additions and 21 deletions

View File

@@ -135,14 +135,6 @@ void static RandomTransaction(CMutableTransaction &tx, bool fSingle) {
randombytes_buf(pourtx.ciphertexts[1].begin(), pourtx.ciphertexts[1].size());
pourtx.macs[0] = GetRandHash();
pourtx.macs[1] = GetRandHash();
{
std::vector<unsigned char> txt;
int prooflen = insecure_rand() % 1000;
for (int i = 0; i < prooflen; i++) {
txt.push_back(insecure_rand() % 256);
}
pourtx.proof = std::string(txt.begin(), txt.end());
}
tx.vpour.push_back(pourtx);
}