Initialize Jubjub parameters up front

This commit is contained in:
Sean Bowe 2018-04-21 17:46:08 -06:00
parent 6cc1813ae3
commit 5f233ef989
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ pub extern "system" fn librustzcash_init_zksnark_params(
output_path: *const c_char,
sprout_path: *const c_char,
) {
// Initialize jubjub parameters here
lazy_static::initialize(&JUBJUB);
// These should be valid CStr's, but the decoding may fail on Windows
// so we may need to use OSStr or something.
let spend_path = unsafe { CStr::from_ptr(spend_path) }