Skip to content

Instantly share code, notes, and snippets.

View exd02's full-sized avatar
🖤

Eliam exd02

🖤
  • Brazil
  • 18:43 (UTC -03:00)
View GitHub Profile
@exd02
exd02 / analyze_order_k.py
Created March 9, 2026 16:13
Markov model analysis for hintfiles
import sys
from collections import defaultdict
from pathlib import Path
from math import log2
# =========================
# Consts
# =========================
FILE_MAGIC = b"UTXO"
FILE_VERSION = 0
@exd02
exd02 / generate_hints.sh
Last active March 10, 2026 17:55
This script is intended to run periodically via a systemd timer (e.g., once per week) to generate updated Bitcoin UTXO hints.
#!/usr/bin/env bash
set -euo pipefail
umask 022
BITCOINCLI="$HOME/dev/bitcoin/build/bin/bitcoin-cli"
HINT_DIR="$HOME/hints"
NEW_HINT_DIR="$HOME/hints_new"
echo "=== $(date) starting generatetxohints ==="