Skip to content
Random21mPublic

About

Air-gapped Matrix cypherpunk Bitcoin transceiver, Ghost Chat messenger, Cashu Sat Vault & 8-transport mesh (Sound, Stego PNG, Words, QR Beam, Nostr, WebRTC P2P, BLE, LoRa, NFC)

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

TXMODEM

Air-gapped acoustic, steganographic & word-cipher transceiver for Bitcoin, private secret messages, and secret photos. Move signed Bitcoin transactions, PSBTs, Cashu eCash tokens, Lightning invoices, encrypted dead-drop messages, or secret photos across a physical air-gap using sound waves, lossless PNG images (photo-inside-a-photo), or innocent English words—with zero USB sticks, zero Bluetooth, zero NFC, and zero servers.

Live web app (works on phone & desktop): https://random21m.github.io/txmodem/
Offline USB download (single self-contained HTML file): txmodem.html · Verify SHA256SUMS.txt

TXMODEM Ghost Chat — BitChat-style off-grid Matrix IRC room with E2EE text, Cashu sats, and encrypted files

🎬 Full 1080p Narrated Walkthrough Video (5m 22s · 10 Chapters)

Watch the TXMODEM Full 1080p Tutorial on YouTube

▶ Watch the full tutorial on YouTube — 10-chapter walkthrough covering Ghost Chat, Cashu Sat Vault, Acoustic MFSK Modem, Stego-PNG Dual-Vault, Word Cipher, 8-Transport Mesh Hub, Saved Archive, and PIN / Duress Wipe. Direct offline copy: docs/txmodem-tour.mp4


Why TXMODEM?

When you sign a Bitcoin transaction on an air-gapped offline device (an old laptop, a Tails live USB, or an offline Sparrow/Bitcoin Core machine), you normally carry the signed raw hex out to an online broadcaster using a USB stick, SD card, or camera/QR.

  • Cryptographic PIN Lock + Duress PIN (🔓 PIN / 🔒 LOCK): Optional 4–12 digit Matrix keypad lock with inactivity Auto-Lock (1m / 5m / 15m) that encrypts your entire Saved Archive and Cashu Sat Vault at rest with ChaCha20-HMAC (zero plaintext in localStorage). Optional Duress PIN silently wipes all stored data and opens a clean empty session.
  • Dedicated Saved Archive (🗄 ARCHIVE) & Burn Timer (🔥 BURN): Save or delete individual messages, secret photos (with full-screen zoom Lightbox), encrypted files, and Bitcoin drops; filter/search; export/import encrypted .txarch backups; or enable 30s / 5m / 1h burn-after-reading timers in Ghost Chat.
  • Built-In Cashu eCash Holding Vault (⚡ SAT VAULT): Hold bearer Cashu sats offline as a go-between vault, claim incoming tokens straight from any carrier, split/send exact sats into Ghost Chat / Sound / QR Beam / Stego-PNG, or go online for real NUT-00/03/04/05/07 mint swaps, Lightning deposits, Lightning withdrawals (lnbc... or user@domain), unspent checks, and ChaCha20-encrypted .txvault backups.
  • 8 Real Transports in One Secret-Agent Console (📡 MESH HUB):
    • Offline / Air-Gap: Acoustic MFSK Sound (.WAV + 🔁 BEACON), Silent Animated Optical QR Beam (🎞 QR BEAM), Camera QR Scan (📷 SCAN QR), Stego-PNG Photo-in-Photo, Word Cipher English Stanzas, Web Bluetooth BLE UART (ESP32 / BitChat / Meshtastic BLE), Web Serial / LoRa (USB LoRa / TNC / serial cable), and Web NFC tag dead-drops (Android Chrome).
    • Online / LAN P2P (strictly opt-in, zero accounts): 🟣 Nostr Global Relay Mesh (pure-JS BIP-340 Schnorr ephemeral keys, hashed #channel tags, ChaCha20-HMAC E2EE) and 🔗 Serverless WebRTC P2P Direct (high-speed HD photo & file transfer via QR/text Offer-Answer with zero signaling server).
  • BitChat-Style 💬 GHOST CHAT Off-Grid Messenger: Ephemeral handles (ghost-4f9a), IRC #channels (#bitcoin, #general, #dead-drop, /join #room), per-channel ChaCha20-HMAC room keys (/key), live Mic Mesh listening, slash commands (/nick, /clear, /help), and ☢ PANIC WIPE instant memory zeroing. Send and receive private text, secret photos, arbitrary encrypted files (with SHA-256 verification), and Bitcoin/Cashu payloads over live sound, .WAV voice drops, Stego-PNG drops, or English Word Cipher stanzas!
  • Sound is a hardware-isolated, strictly one-way air-gap: your offline machine plays a short burst of modem tones out of its speaker (or repeats automatically in 🔁 BEACON mode), and your online phone or laptop hears it through its microphone—malware on the online machine cannot travel backwards through a speaker.
  • Built-in Camera QR Scanner (📷 SCAN QR): load signed transactions, PSBTs, Cashu tokens, or Lightning invoices directly from a phone wallet, SeedSigner, or QR screenshot—works on iOS Safari, Android Chrome, Firefox, and desktop via BarcodeDetector + bundled offline jsQR (including animated multi-part pXofY QRs).
  • Three cypherpunk carriers in one tool: Acoustic MFSK Modem (with Deflate compression + live Mic Level / Clipping meter), Stego-PNG (invisible RGB LSB image carrier), and Word Cipher (256-word innocent English stanza camouflage).
  • Plausible Deniability Dual-Vault: pack two completely independent payloads into one indistinguishable ciphertext across any carrier—Passphrase A reveals your real Bitcoin tx / Cashu token; Decoy Passphrase B reveals a believable decoy.
  • Own-Node Broadcasting: broadcast directly to mempool.space or point TXMODEM at your own Umbrel / Start9 / local Mempool instance, with clickable explorer links.
  • 100% local, zero tracking, zero external CDNs: every byte of DSP, Deflate, Reed-Solomon ECC, Bitcoin wire parsing, QR encoding/decoding, and ChaCha20-HMAC runs locally in pure vanilla JavaScript.

TXMODEM SAT VAULT — built-in Cashu eCash holding wallet with NUT-00 BDHKE, Lightning deposit/withdraw, and multi-transport beam

TXMODEM Acoustic MFSK Modem showing signal analyzer, Testnet SegWit Bitcoin transaction loopback verification, outputs, and QR code

TXMODEM 8-Transport Secret Agent Mesh Hub: Nostr BIP-340, Serverless WebRTC P2P, Bluetooth BLE, Serial/LoRa, and Web NFC

TXMODEM Stego-PNG Carrier mode hiding a Cashu eCash token inside generated Matrix Bitcoin cover art

TXMODEM Word Cipher mode disguising a Cashu Bitcoin payload as natural English stanzas

TXMODEM PIN-Encrypted Saved Archive for messages, secret photos, encrypted files, and Bitcoin drops


Quick Start: Two Ways to Run TXMODEM

Option A — Use Live from the Link (Zero Install)

Anyone can send or receive in seconds with nothing to install:

  1. Open https://random21m.github.io/txmodem/ on your phone or laptop.
  2. (Optional) Add it to your phone's Home Screen—TXMODEM installs an offline Service Worker so it keeps working even in airplane mode.
  3. Click TESTNET BTC TX → ⚡ SELF-TEST LOOPBACK to watch a real SegWit transaction modulate into noisy PCM audio, demodulate through the Goertzel DSP + Reed-Solomon decoder, pass CRC-32, and dissect live on screen.

Does the receiver need the app?
Yes—to decode the sound tones (or extract a Stego PNG), the receiving device simply opens https://random21m.github.io/txmodem/ in any browser (or opens a local copy of txmodem.html). Once decoded, TXMODEM outputs standard Bitcoin raw hex, PSBTs, Cashu tokens, QR codes, and 1-click Mempool.space broadcasting, so it works with any Bitcoin wallet or node.


Option B — Download to a USB Stick for Air-Gapped Offline Use

txmodem.html is a single, completely self-contained HTML file (~155 KB) with all CSS, DSP, Bitcoin parsers, QR code generator, and crypto inlined inside it.

  1. Download txmodem.html:
    • Click the amber ⬇ USB OFFLINE button in the top-right bar of the live web app, or
    • Download txmodem.html and SHA256SUMS.txt directly from this repo / GitHub Releases.
  2. Verify the checksum before copying to USB:
    sha256sum -c SHA256SUMS.txt
  3. Copy txmodem.html onto a USB drive and move it to your offline / air-gapped computer.
  4. Double-click txmodem.html (or open it in Firefox / Chromium on the offline machine).
    • Transmit (▶ TRANSMIT AUDIO), ⬇ EXPORT .WAV, ⚡ SELF-TEST LOOPBACK, .WAV drag-and-drop decode, Stego-PNG embed/extract, and ChaCha20 passphrase encryption all work 100% offline directly from file://.
    • (Browser security note: live Microphone RX requires https:// or http://127.0.0.1—for an offline machine receiving from another offline machine, either drop a .wav file or serve txmodem.html locally with python3 -m http.server 8090 and open http://127.0.0.1:8090/txmodem.html.)

Step-by-Step Instructions

1. Beam a Signed Bitcoin Transaction Across an Air-Gap (Speaker → Mic)

  1. On the online receiving device (phone or laptop):
    • Open https://random21m.github.io/txmodem/.
    • Select the matching network (MAINNET, TESTNET4, or SIGNET) and RX Listen Profile (default: BALANCED).
    • Tap ◉ ARM MIC RECEIVER and allow microphone access. The HUD shows LISTENING.
  2. On the offline signing device (running txmodem.html from USB):
    • Paste your signed raw Bitcoin transaction hex (or PSBT / Cashu token / Lightning invoice) into TX // ACOUSTIC TRANSMITTER.
    • Confirm the auto-detected badge (e.g. RAW BITCOIN TX) and matching profile (BALANCED).
    • Hold the receiving mic 10–30 cm from the speaker (medium-high volume, no clipping) and click ▶ TRANSMIT AUDIO.
  3. Verify & Broadcast:
    • Watch the receiver progress through CARRIER LOCK → SYNCED → HEADER → DECODING → CRC-32 VERIFIED.
    • Inspect the decoded TXID, outputs, decoded addresses (bc1q/bc1p/1.../3...), satoshi amounts, and vBytes in the Bitcoin Protocol Dissector.
    • Click 📡 BROADCAST TO MEMPOOL.SPACE (or COPY to paste into Sparrow / Bitcoin Core / your own node).

2. Send as a .WAV Audio File (Voice Memo / Radio / Offline USB)

  1. Paste your Bitcoin payload into TX and click ⬇ EXPORT .WAV.
  2. Send or move the .wav file through any channel.
  3. On the receiving device, drag and drop the .wav onto DROP .WAV AUDIO CLIP HERE—TXMODEM automatically scans BALANCED, FAST, and ROBUST profiles and verifies the CRC-32 checksum offline.

3. Hide Bitcoin Data Inside a PNG Image (Stego-PNG Carrier)

  1. Switch the top toggle from ACOUSTIC MODEM to STEGO PNG.
  2. Paste a raw Bitcoin tx, PSBT, or Cashu eCash token (or click COPY FROM MODEM TX).
  3. (Optional) Enter a passphrase to lock the payload with ChaCha20 + HMAC-SHA256 before hiding.
  4. Drop any cover photo (PNG/JPG/WebP) or click ⚡ MATRIX COVER ART to generate a cypherpunk cover image.
  5. Click ⬇ EMBED & SAVE STEGO PNG.
  6. Send the PNG via any lossless channel (file attachment, USB, email—avoid apps that re-encode PNGs to JPEG).
  7. On the receiving side, drop the PNG into STEGO RX to extract, verify CRC-32, decrypt if locked, and inspect/claim the Bitcoin payload.

4. Choosing a Modem Speed Profile

Profile Symbol Time Effective Rate Best Used For
FAST 36 ms (4 ms guard) ~20 B/s .WAV files, quiet desks, close speaker-to-mic
BALANCED (default) 52 ms (8 ms guard) ~14 B/s Everyday laptop-to-phone acoustic air-gap
ROBUST 84 ms (14 ms guard) ~8.5 B/s Noisy rooms, reverb, walkie-talkies, phone calls

Tips for clean live mic reception:

  • Keep volume around 65–80% so the laptop speaker does not clip or distort.
  • Place the phone mic 10–25 cm from the speaker in a reasonably quiet room.
  • If a room has echo or background noise, switch both TX and RX to ROBUST (which increases symbol duration and Reed-Solomon ECC from 16 to 24 parity bytes per block).

Technical Specification

Component Details
Modulation Harmonic-free sub-octave Dual-Bank 8×8 MFSK (6 bits/symbol)
Carrier Frequencies Low Bank: 1350–1875 Hz (8 ch) · Sync Pilots: 1950 / 2025 Hz · High Bank: 2100–2625 Hz (8 ch) · 75 Hz spacing (2 × 1350 = 2700 Hz > 2625 Hz -> zero 2nd-harmonic collisions)
Forward Error Correction Pure-JS Reed-Solomon over GF(256) (0x11d) — RS(16,8) protected header + RS(N+16/24, N) data blocks + CRC-32 full-payload verification
Compact Wire Packing Raw Bitcoin tx hex packed to binary (50% faster); Base64 PSBTs packed to binary (25% faster)
Encryption (Optional) Pure-JS PBKDF2-HMAC-SHA256 (15,000 iters) + RFC 8439 ChaCha20 + HMAC-SHA256 Encrypt-then-MAC (works offline on file://)
Bitcoin Dissector Legacy & SegWit wire parser, real TXID & WTXID, P2WPKH / P2WSH (Bech32), P2TR Taproot (Bech32m), P2PKH / P2SH (Base58Check), OP_RETURN, PSBT, Cashu V3 (cashuA) & V4 (cashuB CBOR), BOLT11 Lightning invoices
Stego Carrier Lossless RGB LSB embedding (TXSG header + length + CRC-32, max channel delta ≤ 1, opaque alpha preserved)

Build & Verify From Source

git clone https://github.com/Random21m/txmodem.git
cd txmodem

# Rebuild standalone txmodem.html, index.html, and SHA256SUMS.txt
python3 build.py

# Run full automated verification suite (BIP-173/350, SegWit wire, RS ECC, noisy 44.1/48kHz MFSK, WAV, ChaCha20, Stego, QR)
node tests/test_modem.mjs

# Run locally with live Microphone RX enabled
python3 -m http.server 8090
# Open http://127.0.0.1:8090/

Security & Privacy

  • Zero backend, zero analytics, zero CDNs. Inspect the entire codebase in src/ or audit the single-file txmodem.html directly.
  • Never paste mainnet seed phrases or private keys into any browser tool—TXMODEM is built for signed raw transactions, PSBTs, Cashu bearer tokens, and public invoices.
  • Always double-check decoded output addresses and satoshi amounts in the Bitcoin Protocol Dissector before clicking Confirm & Broadcast.

Support

TXMODEM is free and open source. If it's useful to you, a tip over Lightning helps keep cypherpunk Bitcoin tools coming:

Lightning tip QR code for TXMODEM

npub1t5nvfnlmegsqkqegcpnyek4qf4fc2f2gx2t4lm88h2kq22plpmxqdhgpa9@npub.cash

(An npub.cash Lightning address: scan the QR code or paste the address into any Lightning wallet.)

You can also support TXMODEM by picking up a BitBox02 hardware wallet (referral link) — Swiss-made, open-source Bitcoin hardware security.


License

MIT. Use it, fork it, air-gap it, run your own.
Includes bundled offline QR decoding via jsQR (Apache-2.0 License).

About

Air-gapped Matrix cypherpunk Bitcoin transceiver, Ghost Chat messenger, Cashu Sat Vault & 8-transport mesh (Sound, Stego PNG, Words, QR Beam, Nostr, WebRTC P2P, BLE, LoRa, NFC)

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages