diff --git a/Makefile b/Makefile index b05720d6a5..b62646392c 100644 --- a/Makefile +++ b/Makefile @@ -188,7 +188,7 @@ clean: ## Clean build artifacts .PHONY: download-circuits download-circuits: ## Download the circuits used by Mina from GitHub @if [ ! -d "circuit-blobs" ]; then \ - git clone --depth 1 https://github.com/openmina/circuit-blobs.git; \ + git clone --depth 1 https://github.com/o1-labs/circuit-blobs.git; \ ln -s "$$PWD"/circuit-blobs/3.0.0mainnet ledger/; \ ln -s "$$PWD"/circuit-blobs/3.0.1devnet ledger/; \ else \ diff --git a/ledger/src/proofs/circuit_blobs.rs b/ledger/src/proofs/circuit_blobs.rs index 40bae2607b..740001082b 100644 --- a/ledger/src/proofs/circuit_blobs.rs +++ b/ledger/src/proofs/circuit_blobs.rs @@ -2,7 +2,7 @@ //! //! This module handles circuit constraint extraction for the Mina Rust node. //! Circuit constraints are sourced from the -//! [circuit-blobs](https://github.com/openmina/circuit-blobs) repository, which +//! [circuit-blobs](https://github.com/o1-labs/circuit-blobs) repository, which //! contains pre-compiled circuit data generated by the OCaml implementation. //! //! ## Overview @@ -45,15 +45,15 @@ //! //! 1. **Environment Variable**: `MINA_CIRCUIT_BLOBS_BASE_DIR` //! 2. **Cargo Manifest Directory**: Current project directory -//! 3. **Home Directory**: `~/.openmina/circuit-blobs/` -//! 4. **System Directory**: `/usr/local/lib/openmina/circuit-blobs` +//! 3. **Home Directory**: `~/.mina/circuit-blobs/` +//! 4. **System Directory**: `/usr/local/lib/mina/circuit-blobs` //! //! ### Remote Fetching //! //! If files are not found locally, the system automatically downloads them from: //! //! ```text -//! https://github.com/openmina/circuit-blobs/releases/download/ +//! https://github.com/o1-labs/circuit-blobs/releases/download/ //! ``` //! //! Downloaded files are cached locally for future use. @@ -77,15 +77,15 @@ //! 2. **Local Search**: Searches in these locations (in order): //! - `$MINA_CIRCUIT_BLOBS_BASE_DIR` (if set) //! - Current project directory -//! - `~/.openmina/circuit-blobs/` -//! - `/usr/local/lib/openmina/circuit-blobs` +//! - `~/.mina/circuit-blobs/` +//! - `/usr/local/lib/mina/circuit-blobs` //! 3. **Automatic Download**: If files aren't found locally, downloads from GitHub -//! 4. **Local Caching**: Saves downloaded files to `~/.openmina/circuit-blobs/` +//! 4. **Local Caching**: Saves downloaded files to `~/.mina/circuit-blobs/` //! 5. **Ready to Use**: Circuit data is loaded and ready for proof generation //! //! ### Subsequent Runs //! -//! - Uses cached files from `~/.openmina/circuit-blobs/` +//! - Uses cached files from `~/.mina/circuit-blobs/` //! - No network requests needed //! - Fast startup times //! @@ -117,12 +117,12 @@ use std::path::Path; #[cfg(not(target_family = "wasm"))] pub fn home_base_dir() -> Option { let mut path = std::path::PathBuf::from(std::env::var("HOME").ok()?); - path.push(".openmina/circuit-blobs"); + path.push(".mina/circuit-blobs"); Some(path) } fn git_release_url(filename: &impl AsRef) -> String { - const RELEASES_PATH: &str = "https://github.com/openmina/circuit-blobs/releases/download"; + const RELEASES_PATH: &str = "https://github.com/o1-labs/circuit-blobs/releases/download"; let filename_str = filename.as_ref().to_str().unwrap(); format!("{RELEASES_PATH}/{filename_str}") @@ -152,7 +152,7 @@ pub fn fetch_blocking(filename: &impl AsRef) -> std::io::Result> { .or_else(|| try_base_dir(std::env::var("MINA_CIRCUIT_BLOBS_BASE_DIR").ok()?, filename)) .or_else(|| try_base_dir(env!("CARGO_MANIFEST_DIR").to_string(), filename)) .or_else(|| try_base_dir(home_base_dir.clone()?, filename)) - .or_else(|| try_base_dir("/usr/local/lib/openmina/circuit-blobs", filename)); + .or_else(|| try_base_dir("/usr/local/lib/mina/circuit-blobs", filename)); if let Some(path) = found { return std::fs::read(path); diff --git a/website/docs/developers/circuits.md b/website/docs/developers/circuits.md index 8cd461a8cd..cf0b8a69a8 100644 --- a/website/docs/developers/circuits.md +++ b/website/docs/developers/circuits.md @@ -242,7 +242,7 @@ in the ledger crate. ### Overview Circuit constraints for the Mina Rust node are sourced from the -[circuit-blobs](https://github.com/openmina/circuit-blobs) repository, which +[circuit-blobs](https://github.com/o1-labs/circuit-blobs) repository, which contains pre-compiled circuit data generated by the OCaml implementation. The Mina Rust node automatically handles downloading and caching these circuit diff --git a/website/docs/node-operators/webnode/local-webnode.md b/website/docs/node-operators/webnode/local-webnode.md index e8064d9a4a..d61b189885 100644 --- a/website/docs/node-operators/webnode/local-webnode.md +++ b/website/docs/node-operators/webnode/local-webnode.md @@ -46,7 +46,7 @@ Download `circuit-blobs`, from the root of project run: ```sh cd frontend/src/assets/webnode -git clone --depth 1 https://github.com/openmina/circuit-blobs.git +git clone --depth 1 https://github.com/o1-labs/circuit-blobs.git ``` And create `web-node-secrets.json` in `frontend/src/assets/webnode` it should be