Skip to content

Commit 9012cbb

Browse files
committed
fix(ci): drop pysha3 (Python 3.12 has sha3 in hashlib), fix Rust unused import + clippy::io_other_error
1 parent 98f13d1 commit 9012cbb

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

invariant/invariant-gates/src/registry.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ impl Registry {
9393
agents: inner.meta.clone(),
9494
models: inner.models.iter().cloned().collect(),
9595
};
96-
let json = serde_json::to_string_pretty(&file)
97-
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?;
96+
let json = serde_json::to_string_pretty(&file).map_err(std::io::Error::other)?;
9897
fs::write(path, json)
9998
}
10099

invariant/invariant-gates/src/verifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl Verifier {
190190

191191
// ─── Receipt builder (miner side) ────────────────────────────────
192192

193-
use crate::crypto::{compute_execution_hash, compute_receipt_digest as _crd};
193+
use crate::crypto::compute_execution_hash;
194194

195195
/// Build a complete, correctly-signed receipt.
196196
/// Called by the miner after task execution.

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ bittensor>=9.12.0
88
numpy>=1.24.0
99

1010
# ── Keccak-256 for DePIN hardware identity ───────────────────────
11-
# Provides SHA3/Keccak. Rust crate uses tiny-keccak natively —
12-
# this is only needed by the pure Python fallback path.
13-
pysha3>=1.0.2
11+
# Python 3.6+ includes sha3/keccak in the standard library hashlib.
12+
# pysha3 is NOT needed — hashlib.sha3_256() is available natively.
13+
# The Rust crate uses tiny-keccak directly (no Python dependency).
1414

1515
# ── Phase 3 cross-subnet API ─────────────────────────────────────
1616
fastapi>=0.100.0

0 commit comments

Comments
 (0)