Menu

How I Built a Tamper-Evident SHA-256 Public Audit Ledger on a $16/mo Single VM
πŸ“°

How I Built a Tamper-Evident SHA-256 Public Audit Ledger on a $16/mo Single VM

DEV Community: fastapiΒ·Tak OishiΒ·about 5 hours ago
#yfK70nfU
#devtofastapi#devto#dev#newsletter#github
Long article (312 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Most investing tools show cherry-picked backtest screenshots and quietly hide losing weeks. When I built IronRule AI as a solo developer, I wanted a verification layer that even I couldn't edit after the fact.

Here is the exact ~$16/mo production stack running right now:

Compute: Single GCP e2-small VM + Docker Compose (FastAPI, React/Vite, Nginx, Caddy auto-HTTPS)

Database: SQLite (zero managed DB bill) with automated nightly snapshots

Daily Hash Chain: After every US market close, a scheduled job appends our paper portfolio's percentage return vs. the S&P 500 into a chained SHA-256 ledger ( prev_hash β†’ block_hash ) and commits it straight to a public GitHub repo

30-Day Commit & Reveal: When a paper trade closes, we commit SHA-256(canonical_trade_json + random_salt) on exit day, then automatically reveal the plaintext trade + salt 30 days later (protecting active positioning while making deletions mathematically impossible)

One Fun Engineering Gotcha: Python vs.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.