Make loading of Sprout key optional in zcash_proofs API

This commit is contained in:
Jack Grigg
2018-09-17 11:59:46 +01:00
parent 2d43e3be7c
commit 9ae5a9d624
2 changed files with 19 additions and 14 deletions

View File

@@ -210,8 +210,8 @@ fn init_zksnark_params(
spend_hash,
output_path,
output_hash,
sprout_path,
sprout_hash,
Some(sprout_path),
Some(sprout_hash),
);
// Caller is responsible for calling this function once, so
@@ -223,7 +223,7 @@ fn init_zksnark_params(
SAPLING_SPEND_VK = Some(spend_vk);
SAPLING_OUTPUT_VK = Some(output_vk);
SPROUT_GROTH16_VK = Some(sprout_vk);
SPROUT_GROTH16_VK = Some(sprout_vk.unwrap());
}
}