Skip to content

Commit

Permalink
fix: vk filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
roynalnaruto committed Jul 18, 2024
1 parent 6f199a1 commit d93717c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions prover/src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@ use std::sync::LazyLock;
// TODO: is it a good design to use LazyLock? Why not read env var each time?

pub fn bundle_vk_filename() -> String {
read_env_var("BUNDLE_VK_FILENAME", "bundle_vk.vkey".to_string())
read_env_var("BUNDLE_VK_FILENAME", "vk_bundle.vkey".to_string())
}
pub fn batch_vk_filename() -> String {
read_env_var("BATCH_VK_FILENAME", "batch_vk.vkey".to_string())
read_env_var("BATCH_VK_FILENAME", "vk_batch.vkey".to_string())
}
pub fn chunk_vk_filename() -> String {
read_env_var("CHUNK_VK_FILENAME", "chunk_vk.vkey".to_string())
read_env_var("CHUNK_VK_FILENAME", "vk_chunk.vkey".to_string())
}

pub static CHUNK_PROTOCOL_FILENAME: LazyLock<String> =
LazyLock::new(|| read_env_var("CHUNK_PROTOCOL_FILENAME", "chunk.protocol".to_string()));
pub static BATCH_PROTOCOL_FILENAME: LazyLock<String> =
LazyLock::new(|| read_env_var("BATCH_PROTOCOL_FILENAME", "batch.protocol".to_string()));

pub static CHUNK_VK_FILENAME: LazyLock<String> = LazyLock::new(chunk_vk_filename);
pub static BATCH_VK_FILENAME: LazyLock<String> = LazyLock::new(batch_vk_filename);
Expand Down

0 comments on commit d93717c

Please sign in to comment.