v0.9.6: InfoNet hashchain, Wormhole gate encryption, mesh reputation, 16 community contributors

Gate messages now propagate via the Infonet hashchain as encrypted blobs — every node syncs them
through normal chain sync while only Gate members with MLS keys can decrypt. Added mesh reputation
system, peer push workers, voluntary Wormhole opt-in for node participation, fork recovery,
killwormhole scripts, obfuscated terminology, and hardened the self-updater to protect encryption
keys and chain state during updates.

New features: Shodan search, train tracking, Sentinel Hub imagery, 8 new intelligence layers,
CCTV expansion to 11,000+ cameras across 6 countries, Mesh Terminal CLI, prediction markets,
desktop-shell scaffold, and comprehensive mesh test suite (215 frontend + backend tests passing).

Community contributors: @wa1id, @AlborzNazari, @adust09, @Xpirix, @imqdcr, @csysp, @suranyami,
@chr0n1x, @johan-martensson, @singularfailure, @smithbh, @OrfeoTerkuci, @deuza, @tm-const,
@Elhard1, @ttulttul
This commit is contained in:
anoracleofra-code
2026-03-26 05:58:04 -06:00
parent d363013742
commit 668ce16dc7
363 changed files with 170430 additions and 23203 deletions
+33
View File
@@ -0,0 +1,33 @@
# Tauri Skeleton
This folder is the first concrete Tauri-side integration skeleton for the desktop boundary.
## Scope
It is intentionally limited to the first trusted local control-plane command set:
- Wormhole lifecycle
- protected settings reads/writes
- update trigger
It does **not** attempt to move DM/data-plane operations yet.
## What this scaffold demonstrates
1. a native `invoke_local_control` command entrypoint
2. a small Rust-side router for the first command set
3. backend HTTP delegation with native-side admin-key ownership
4. a simple webview runtime injection path for:
- `window.__SHADOWBROKER_DESKTOP__.invokeLocalControl(...)`
## Important note
This is a scaffold, not a fully integrated desktop app yet. It exists so the next Tauri pass has a
clear structure instead of starting from scratch.
## Shared contract
The command names this scaffold must track are defined in:
- `F:\Codebase\Oracle\live-risk-dashboard\frontend\src\lib\desktopControlContract.ts`
- `F:\Codebase\Oracle\live-risk-dashboard\frontend\src\lib\desktopControlRouting.ts`
@@ -0,0 +1,13 @@
[package]
name = "shadowbroker-tauri-shell"
version = "0.1.0"
edition = "2021"
[build-dependencies]
tauri-build = { version = "2" }
[dependencies]
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tauri = { version = "2", features = [] }
@@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}
@@ -0,0 +1,19 @@
use serde_json::Value;
use tauri::State;
use crate::{handlers::dispatch_control_command, DesktopAppState};
#[tauri::command]
pub async fn invoke_local_control(
command: String,
payload: Option<Value>,
state: State<'_, DesktopAppState>,
) -> Result<Value, String> {
dispatch_control_command(
&state.backend_base_url,
state.admin_key.as_deref(),
&command,
payload,
)
.await
}
@@ -0,0 +1,57 @@
use reqwest::Method;
use serde_json::Value;
use crate::http_client::call_backend_json;
pub async fn dispatch_control_command(
backend_base_url: &str,
admin_key: Option<&str>,
command: &str,
payload: Option<Value>,
) -> Result<Value, String> {
match command {
"wormhole.status" => {
call_backend_json(backend_base_url, admin_key, "/api/wormhole/status", Method::GET, None).await
}
"wormhole.connect" => {
call_backend_json(backend_base_url, admin_key, "/api/wormhole/connect", Method::POST, None).await
}
"wormhole.disconnect" => {
call_backend_json(backend_base_url, admin_key, "/api/wormhole/disconnect", Method::POST, None).await
}
"wormhole.restart" => {
call_backend_json(backend_base_url, admin_key, "/api/wormhole/restart", Method::POST, None).await
}
"settings.wormhole.get" => {
call_backend_json(backend_base_url, admin_key, "/api/settings/wormhole", Method::GET, None).await
}
"settings.wormhole.set" => {
call_backend_json(backend_base_url, admin_key, "/api/settings/wormhole", Method::PUT, payload).await
}
"settings.privacy.get" => {
call_backend_json(backend_base_url, admin_key, "/api/settings/privacy-profile", Method::GET, None).await
}
"settings.privacy.set" => {
call_backend_json(backend_base_url, admin_key, "/api/settings/privacy-profile", Method::PUT, payload).await
}
"settings.api_keys.get" => {
call_backend_json(backend_base_url, admin_key, "/api/settings/api-keys", Method::GET, None).await
}
"settings.api_keys.set" => {
call_backend_json(backend_base_url, admin_key, "/api/settings/api-keys", Method::PUT, payload).await
}
"settings.news.get" => {
call_backend_json(backend_base_url, admin_key, "/api/settings/news-feeds", Method::GET, None).await
}
"settings.news.set" => {
call_backend_json(backend_base_url, admin_key, "/api/settings/news-feeds", Method::PUT, payload).await
}
"settings.news.reset" => {
call_backend_json(backend_base_url, admin_key, "/api/settings/news-feeds/reset", Method::POST, None).await
}
"system.update" => {
call_backend_json(backend_base_url, admin_key, "/api/system/update", Method::POST, None).await
}
_ => Err(format!("unsupported_control_command:{command}")),
}
}
@@ -0,0 +1,40 @@
use reqwest::Method;
use serde_json::Value;
pub async fn call_backend_json(
base_url: &str,
admin_key: Option<&str>,
path: &str,
method: Method,
payload: Option<Value>,
) -> Result<Value, String> {
let client = reqwest::Client::new();
let mut request = client.request(method, format!("{base_url}{path}"));
if let Some(key) = admin_key {
if !key.trim().is_empty() {
request = request.header("X-Admin-Key", key);
}
}
if let Some(value) = payload {
request = request.json(&value);
}
let response = request
.send()
.await
.map_err(|e| format!("backend_request_failed:{e}"))?;
let status = response.status();
let text = response
.text()
.await
.map_err(|e| format!("backend_response_failed:{e}"))?;
let value: Value = serde_json::from_str(&text).unwrap_or_else(|_| serde_json::json!({}));
if !status.is_success() || value.get("ok") == Some(&Value::Bool(false)) {
let detail = value
.get("detail")
.and_then(|v| v.as_str())
.or_else(|| value.get("message").and_then(|v| v.as_str()))
.unwrap_or("native_control_request_failed");
return Err(detail.to_string());
}
Ok(value)
}
@@ -0,0 +1,37 @@
mod bridge;
mod handlers;
mod http_client;
use bridge::invoke_local_control;
pub struct DesktopAppState {
pub backend_base_url: String,
pub admin_key: Option<String>,
}
fn main() {
let backend_base_url =
std::env::var("SHADOWBROKER_BACKEND_URL").unwrap_or_else(|_| "http://127.0.0.1:8000".to_string());
let admin_key = std::env::var("SHADOWBROKER_ADMIN_KEY").ok();
tauri::Builder::default()
.manage(DesktopAppState {
backend_base_url,
admin_key,
})
.invoke_handler(tauri::generate_handler![invoke_local_control])
.setup(|app| {
if let Some(window) = app.get_webview_window("main") {
let script = r#"
window.__SHADOWBROKER_DESKTOP__ = {
invokeLocalControl: (command, payload) =>
window.__TAURI__.core.invoke('invoke_local_control', { command, payload })
};
"#;
let _ = window.eval(script);
}
Ok(())
})
.run(tauri::generate_context!())
.expect("failed to run shadowbroker tauri shell");
}
@@ -0,0 +1,21 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "ShadowBroker Desktop Shell",
"version": "0.1.0",
"identifier": "com.shadowbroker.desktop",
"build": {
"frontendDist": "../../frontend/.next",
"devUrl": "http://127.0.0.1:3000"
},
"app": {
"windows": [
{
"label": "main",
"title": "ShadowBroker",
"width": 1600,
"height": 1000,
"resizable": true
}
]
}
}