Skip to content

Commit 9c13fd2

Browse files
committed
circuit-blobs: move from openmina to o1-labs organization
1 parent 6b76cff commit 9c13fd2

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ clean: ## Clean build artifacts
188188
.PHONY: download-circuits
189189
download-circuits: ## Download the circuits used by Mina from GitHub
190190
@if [ ! -d "circuit-blobs" ]; then \
191-
git clone --depth 1 https://github.com/openmina/circuit-blobs.git; \
191+
git clone --depth 1 https://github.com/o1-labs/circuit-blobs.git; \
192192
ln -s "$$PWD"/circuit-blobs/3.0.0devnet ledger/; \
193193
ln -s "$$PWD"/circuit-blobs/3.0.0mainnet ledger/; \
194194
ln -s "$$PWD"/circuit-blobs/3.0.1devnet ledger/; \

ledger/src/proofs/circuit_blobs.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! This module handles circuit constraint extraction for the Mina Rust node.
44
//! Circuit constraints are sourced from the
5-
//! [circuit-blobs](https://github.com/openmina/circuit-blobs) repository, which
5+
//! [circuit-blobs](https://github.com/o1-labs/circuit-blobs) repository, which
66
//! contains pre-compiled circuit data generated by the OCaml implementation.
77
//!
88
//! ## Overview
@@ -45,15 +45,15 @@
4545
//!
4646
//! 1. **Environment Variable**: `MINA_CIRCUIT_BLOBS_BASE_DIR`
4747
//! 2. **Cargo Manifest Directory**: Current project directory
48-
//! 3. **Home Directory**: `~/.openmina/circuit-blobs/`
49-
//! 4. **System Directory**: `/usr/local/lib/openmina/circuit-blobs`
48+
//! 3. **Home Directory**: `~/.mina/circuit-blobs/`
49+
//! 4. **System Directory**: `/usr/local/lib/mina/circuit-blobs`
5050
//!
5151
//! ### Remote Fetching
5252
//!
5353
//! If files are not found locally, the system automatically downloads them from:
5454
//!
5555
//! ```text
56-
//! https://github.com/openmina/circuit-blobs/releases/download/<filename>
56+
//! https://github.com/o1-labs/circuit-blobs/releases/download/<filename>
5757
//! ```
5858
//!
5959
//! Downloaded files are cached locally for future use.
@@ -77,15 +77,15 @@
7777
//! 2. **Local Search**: Searches in these locations (in order):
7878
//! - `$MINA_CIRCUIT_BLOBS_BASE_DIR` (if set)
7979
//! - Current project directory
80-
//! - `~/.openmina/circuit-blobs/`
81-
//! - `/usr/local/lib/openmina/circuit-blobs`
80+
//! - `~/.mina/circuit-blobs/`
81+
//! - `/usr/local/lib/mina/circuit-blobs`
8282
//! 3. **Automatic Download**: If files aren't found locally, downloads from GitHub
83-
//! 4. **Local Caching**: Saves downloaded files to `~/.openmina/circuit-blobs/`
83+
//! 4. **Local Caching**: Saves downloaded files to `~/.mina/circuit-blobs/`
8484
//! 5. **Ready to Use**: Circuit data is loaded and ready for proof generation
8585
//!
8686
//! ### Subsequent Runs
8787
//!
88-
//! - Uses cached files from `~/.openmina/circuit-blobs/`
88+
//! - Uses cached files from `~/.mina/circuit-blobs/`
8989
//! - No network requests needed
9090
//! - Fast startup times
9191
//!
@@ -117,12 +117,12 @@ use std::path::Path;
117117
#[cfg(not(target_family = "wasm"))]
118118
pub fn home_base_dir() -> Option<std::path::PathBuf> {
119119
let mut path = std::path::PathBuf::from(std::env::var("HOME").ok()?);
120-
path.push(".openmina/circuit-blobs");
120+
path.push(".mina/circuit-blobs");
121121
Some(path)
122122
}
123123

124124
fn git_release_url(filename: &impl AsRef<Path>) -> String {
125-
const RELEASES_PATH: &str = "https://github.com/openmina/circuit-blobs/releases/download";
125+
const RELEASES_PATH: &str = "https://github.com/o1-labs/circuit-blobs/releases/download";
126126
let filename_str = filename.as_ref().to_str().unwrap();
127127

128128
format!("{RELEASES_PATH}/{filename_str}")
@@ -152,7 +152,7 @@ pub fn fetch_blocking(filename: &impl AsRef<Path>) -> std::io::Result<Vec<u8>> {
152152
.or_else(|| try_base_dir(std::env::var("MINA_CIRCUIT_BLOBS_BASE_DIR").ok()?, filename))
153153
.or_else(|| try_base_dir(env!("CARGO_MANIFEST_DIR").to_string(), filename))
154154
.or_else(|| try_base_dir(home_base_dir.clone()?, filename))
155-
.or_else(|| try_base_dir("/usr/local/lib/openmina/circuit-blobs", filename));
155+
.or_else(|| try_base_dir("/usr/local/lib/mina/circuit-blobs", filename));
156156

157157
if let Some(path) = found {
158158
return std::fs::read(path);

website/docs/developers/circuits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ in the ledger crate.
242242
### Overview
243243

244244
Circuit constraints for the Mina Rust node are sourced from the
245-
[circuit-blobs](https://github.com/openmina/circuit-blobs) repository, which
245+
[circuit-blobs](https://github.com/o1-labs/circuit-blobs) repository, which
246246
contains pre-compiled circuit data generated by the OCaml implementation.
247247

248248
The Mina Rust node automatically handles downloading and caching these circuit

website/docs/node-operators/webnode/local-webnode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Download `circuit-blobs`, from the root of project run:
4646

4747
```sh
4848
cd frontend/src/assets/webnode
49-
git clone --depth 1 https://github.com/openmina/circuit-blobs.git
49+
git clone --depth 1 https://github.com/o1-labs/circuit-blobs.git
5050
```
5151

5252
And create `web-node-secrets.json` in `frontend/src/assets/webnode` it should be

0 commit comments

Comments
 (0)