Initialize Jubjub parameters up front
This commit is contained in:
parent
6cc1813ae3
commit
5f233ef989
|
@ -34,6 +34,9 @@ pub extern "system" fn librustzcash_init_zksnark_params(
|
||||||
output_path: *const c_char,
|
output_path: *const c_char,
|
||||||
sprout_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
|
// These should be valid CStr's, but the decoding may fail on Windows
|
||||||
// so we may need to use OSStr or something.
|
// so we may need to use OSStr or something.
|
||||||
let spend_path = unsafe { CStr::from_ptr(spend_path) }
|
let spend_path = unsafe { CStr::from_ptr(spend_path) }
|
||||||
|
|
Loading…
Reference in New Issue