From e45a175e14edb9c4699d6f6dc3e87abd7af9f5d7 Mon Sep 17 00:00:00 2001 From: Igor Aleksanov Date: Tue, 10 Sep 2024 14:05:26 +0400 Subject: [PATCH] Fix base dir path --- prover/crates/lib/keystore/src/keystore.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prover/crates/lib/keystore/src/keystore.rs b/prover/crates/lib/keystore/src/keystore.rs index aef4490ae41..28ce989287c 100644 --- a/prover/crates/lib/keystore/src/keystore.rs +++ b/prover/crates/lib/keystore/src/keystore.rs @@ -55,12 +55,15 @@ impl Keystore { /// Uses automatic detection of the base path, and assumes that setup keys /// are stored in the same directory. + /// + /// The "base" path is considered to be equivalent to the `prover/data/keys` + /// directory in the repository. pub fn locate() -> Self { // There might be several cases: // - We're running from the prover workspace. // - We're running from the core workspace. // - We're running the binary from the docker. - let base_path = match Workspace::locate() { + let data_dir_path = match Workspace::locate() { Workspace::None => { // We're running a binary, likely in a docker. // Keys can be in one of a few paths. @@ -77,6 +80,7 @@ impl Keystore { ws.prover().join("data") } }; + let base_path = data_dir_path.join("keys"); Self { basedir: base_path.clone(),