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

@@ -58,7 +58,7 @@ public:
virtual void loadVerifyingKey(std::string path) = 0;
virtual void saveVerifyingKey(std::string path) = 0;
virtual std::string prove(
virtual boost::array<unsigned char, ZKSNARK_PROOF_SIZE> prove(
const boost::array<JSInput, NumInputs>& inputs,
const boost::array<JSOutput, NumOutputs>& outputs,
boost::array<Note, NumOutputs>& out_notes,
@@ -75,7 +75,7 @@ public:
) = 0;
virtual bool verify(
const std::string& proof,
const boost::array<unsigned char, ZKSNARK_PROOF_SIZE>& proof,
const uint256& pubKeyHash,
const uint256& randomSeed,
const boost::array<uint256, NumInputs>& hmacs,