Skip to content

Commit

Permalink
Merge pull request #131 from LayerXcom/feature/test_params
Browse files Browse the repository at this point in the history
Add test's files for zk params
  • Loading branch information
osuketh authored Jul 6, 2019
2 parents 1fc625f + cd22433 commit 7dfe0b2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion runtime/src/conf_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Binary file modified zface/proving.params
Binary file not shown.
4 changes: 2 additions & 2 deletions zface/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
6 changes: 4 additions & 2 deletions zface/src/transaction/constants.rs
Original file line number Diff line number Diff line change
@@ -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";
Binary file added zface/tests/proving.dat
Binary file not shown.
Binary file added zface/tests/verification.dat
Binary file not shown.
Binary file modified zface/verification.params
Binary file not shown.

0 comments on commit 7dfe0b2

Please sign in to comment.