File tree Expand file tree Collapse file tree
invariant/invariant-gates/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ bittensor>=9.12.0
88numpy >= 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 ─────────────────────────────────────
1616fastapi >= 0.100.0
You can’t perform that action at this time.
0 commit comments