diff --git a/runtime/src/conf_transfer.rs b/runtime/src/conf_transfer.rs index 98e529bf..ae7b3c0c 100644 --- a/runtime/src/conf_transfer.rs +++ b/runtime/src/conf_transfer.rs @@ -438,7 +438,7 @@ mod tests { } fn get_pvk() -> PreparedVk { - let vk_path = Path::new("../zface/verification.params"); + let vk_path = Path::new("../zface/tests/verification.dat"); let vk_file = File::open(&vk_path).unwrap(); let mut vk_reader = BufReader::new(vk_file); diff --git a/zface/proving.params b/zface/proving.params index c48d94d3..54006359 100644 Binary files a/zface/proving.params and b/zface/proving.params differ diff --git a/zface/src/main.rs b/zface/src/main.rs index d7b2e6b0..1ad73688 100644 --- a/zface/src/main.rs +++ b/zface/src/main.rs @@ -611,7 +611,7 @@ fn debug_commands_definition<'a, 'b>() -> App<'a, 'b> { .value_name("FILE") .takes_value(true) .required(false) - .default_value(PROVING_KEY_PATH) + .default_value(TEST_PROVING_KEY_PATH) ) .arg(Arg::with_name("verification-key-path") .short("v") @@ -620,7 +620,7 @@ fn debug_commands_definition<'a, 'b>() -> App<'a, 'b> { .value_name("FILE") .takes_value(true) .required(false) - .default_value(VERIFICATION_KEY_PATH) + .default_value(TEST_VERIFICATION_KEY_PATH) ) .arg(Arg::with_name("amount") .short("a") diff --git a/zface/src/transaction/constants.rs b/zface/src/transaction/constants.rs index 1c86aad8..3c4dce89 100644 --- a/zface/src/transaction/constants.rs +++ b/zface/src/transaction/constants.rs @@ -1,2 +1,4 @@ -pub const VERIFICATION_KEY_PATH: &str = "zface/verification.params"; -pub const PROVING_KEY_PATH: &str = "zface/proving.params"; +pub const VERIFICATION_KEY_PATH: &'static str = "zface/verification.params"; +pub const PROVING_KEY_PATH: &'static str = "zface/proving.params"; +pub const TEST_VERIFICATION_KEY_PATH: &'static str = "zface/tests/verification.dat"; +pub const TEST_PROVING_KEY_PATH: &'static str = "zface/tests/proving.dat"; diff --git a/zface/tests/proving.dat b/zface/tests/proving.dat new file mode 100644 index 00000000..c48d94d3 Binary files /dev/null and b/zface/tests/proving.dat differ diff --git a/zface/tests/verification.dat b/zface/tests/verification.dat new file mode 100644 index 00000000..e980f41e Binary files /dev/null and b/zface/tests/verification.dat differ diff --git a/zface/verification.params b/zface/verification.params index e980f41e..ba4103b3 100644 Binary files a/zface/verification.params and b/zface/verification.params differ