Lazily load the proving key at time of first pour.

This commit is contained in:
Sean Bowe
2016-03-15 14:16:05 -06:00
parent 3af297cc57
commit 8f8c4c6c0c
4 changed files with 32 additions and 12 deletions

View File

@@ -132,6 +132,7 @@ void PourTransaction::init(uint16_t version_num,
const Coin& c_1_new,
const Coin& c_2_new)
{
params.loadProvingKey();
this->version = version_num;
convertIntToBytesVector(v_pub_old, this->publicOldValue);