r/madeinrust • • 5d ago

100% Human Coded ODIN Suite: A native Rust hashpower execution engine, fleet supervisor, and read-only mobile telemetry lens

I got tired of babysitting Python scripts that drifted out of sync with live hashpower order books, misread delayed pool payouts, or needed manual reboots whenever a worker node hung. So I rewrote the entire stack into standalone Rust binaries: ODIN Suite.

What’s inside (3 decoupled Rust binaries):

Why Rust mattered here:

Honest limitations / current focus:

Releases & docs:https://asgardhashworks.github.io/odin-suite-releases/

Would love feedback from other Rust devs building local daemons or telemetry pipelines—especially on lightweight state persistence across Windows/Linux restarts and structuring clean read-only telemetry boundaries.

0 Upvotes

3 comments sorted by

4

u/AutoModerator 5d ago

Upvote this comment if you think this project is AI slop. Downvote this comment if you think this project is not AI slop.

This is to indicate to other users of the subreddit and is not used for moderation.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/CoachNo180 3d ago

Holy cancer. This has to be satire.

1

u/Money-Currency7473 3d ago

I originally prototyped this system in Python, and it failed in all the ways you would expect when bridging asynchronous network I/O with deterministic hardware supervision. Between the GIL and non-deterministic garbage collection pauses, I kept hitting subtle order-book state drift during volatile market ticks. Stratum socket drops would occasionally deadlock worker threads, and reconciling delayed pool accounting against live bid adjustments turned into an endless exercise in defensive exception handling.

So I rewrote the entire stack into ODIN Suite, splitting the architecture across three decoupled, single-binary Rust daemons built around strict fault isolation and zero-trust boundaries.

The execution engine, ODIN, runs on tokio, reqwest, and serde. Rather than letting slow upstream exchange or pool REST endpoints induce backpressure on order evaluation, I separated network ingestion from state mutation using bounded channels. Order-book state transitions happen deterministically in memory, with a monotonic state machine governing bid repricing, cancellation, and fill reconciliation.

Fleet supervision is isolated in a separate daemon, SLEIPNIR, which manages heterogeneous local compute workers across GPUs, CPUs, and ASIC endpoints. It treats child miners and stratum proxies as untrusted, crash-prone processes—tracking thread heartbeats, pipe output, and hardware telemetry so a hung driver or dropped socket triggers an isolated, deterministic restart without tearing down adjacent workers.

Telemetry is completely decoupled through a third binary, HUGINN, which serves operational metrics and audit state strictly over a Tailscale interface. There are zero open inbound ports on the host, and the telemetry consumer holds zero write capabilities or IPC handles back into the execution path, reading from an immutable snapshot boundary rather than touching live execution locks.

Because these daemons handle live capital allocation and hardware control on bare-metal hosts, I avoided heavyweight runtime dependencies and external databases altogether. Secrets never touch plaintext config files; credentials are sealed via OS-native primitives (Windows DPAPI and Linux TPM2) and exchange keys are scoped strictly to trade-only permissions. Every execution decision and state mutation is written to an append-only, SHA-256 hash-chained audit log so post-mortem state reconstruction is cryptographically verifiable, and the release artifacts ship as standalone binaries with offline Ed25519 signature verification ([https://asgardhashworks.github.io/odin-suite-releases/](https://asgardhashworks.github.io/odin-suite-releases/)).

For anyone else building cross-platform state-machine daemons in Rust, I am currently weighing two architectural refinements for the next release and would appreciate thoughts. First, on crash-consistent state persistence, I am evaluating atomic temp-file write-and-rename checkpoints (serde with bincode or postcard) against an embedded transactional store like redb to survive hard power losses on Windows and Linux without introducing fsync bottlenecks. Second, on IPC boundary hardening, I am looking at the cleanest cross-platform pattern for low-overhead, strictly read-only state publication between a privileged supervisor process and an unprivileged telemetry daemon—specifically memory-mapped ring buffers versus Unix domain sockets and Windows named pipes.

Any feedback is appreciated and thanks for the look and review positive, negative, or otherwise this isn't and wasn't designed for everyone's taste however it may appear it's a reflection of who we are and what we stand for.

ASGARD HASHWORKS