mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-30 20:11:23 +00:00
Make loading of Sprout key optional in zcash_proofs API
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user