# CipherHouse Bitcoin PSBT Privacy & Fee-Trap Verifier + Nostr Relay Health Utility > 100% MIT open-source, zero-dependency Bitcoin BIP-174 PSBT privacy/fee verifier and Nostr NIP-11 relay health & anti-spam inspector. Local-first browser mode + Cloudflare Pages Edge API + Node.js CLI & JSON-RPC 2.0 stdio server. - Canonical URL: https://cipherhouse-btc-guard.pages.dev/ - Publisher: CipherHouse (Open-Source Bitcoin & Nostr Security Engineering) - License: MIT - Zero Custody: Never requests seed phrases, private keys, or wallet connections. Default web mode parses PSBTs 100% client-side in-browser so unsigned transactions never leave the device. ## Key Features 1. **Pure-JS BIP-174 PSBT Parser (Base64 & Hex)** - Decodes `PSBT_GLOBAL_UNSIGNED_TX`, `PSBT_IN_WITNESS_UTXO`, `PSBT_IN_NON_WITNESS_UTXO` (full previous tx parsing), `PSBT_IN_SIGHASH_TYPE`, and BIP-32/Taproot derivation paths. - Pure-JS SHA-256, Bech32 (BIP-173), Bech32m (BIP-350), and Base58Check encoding for `P2TR` (`bc1p`), `P2WPKH`/`P2WSH` (`bc1q`), `P2PKH` (`1...`), `P2SH` (`3...`), and `OP_RETURN`. 2. **Fee-Trap & Signing Safety Verifier** - Live `mempool.space` recommended fee comparison (`fastestFee`, `halfHourFee`, `hourFee`, `economyFee`, `minimumFee`). - Flags fee-blind missing UTXO inputs, >5%/10% fee ratios, extreme sat/vB overpays, below-minimum mempool eviction risk, dangerous `SIGHASH_NONE`/`ANYONECANPAY` flags, dust outputs (`294`/`330`/`540`/`546` sats), and disabled BIP-125 RBF. 3. **On-Chain Privacy Heuristic Scoring** - Detects input-to-output address reuse, duplicate output addresses, script-type mismatch change fingerprinting, round-number payment change leaks, zero `nLockTime` wallet fingerprinting, and mixed-script CIOH cluster linkage. 4. **Live Nostr Relay Health & NIP-11 Anti-Spam Inspector** - Inspects `Accept: application/nostr+json` NIP-11 documents with SSRF protection, exact round-trip latency, CORS headers, operator transparency, supported NIP matrix (`NIP-01`..`NIP-77`), and anti-spam gates (`payment_required`, `auth_required` / NIP-42, `min_pow_difficulty` / NIP-13, `restricted_writes`, message/subscription/time limits). ## Public Edge API Endpoints - `GET https://cipherhouse-btc-guard.pages.dev/api/health` — Live mempool.space tip height, recommended fees & engine version - `GET https://cipherhouse-btc-guard.pages.dev/api/fees` — Live Bitcoin mainnet recommended fee rates (sat/vB) - `GET https://cipherhouse-btc-guard.pages.dev/api/presets` — Binary-valid BIP-174 sample PSBTs, curated Nostr relays & CLI/stdio tool schema - `POST https://cipherhouse-btc-guard.pages.dev/api/psbt/verify` — JSON `{ "psbt": "cHNidP8...", "network": "mainnet", "fetchLiveFees": true }` - `GET https://cipherhouse-btc-guard.pages.dev/api/nostr/inspect?relay=wss://relay.damus.io` — Live NIP-11 relay health & anti-spam audit - `POST https://cipherhouse-btc-guard.pages.dev/api/nostr/evaluate` — Deterministic offline NIP-11 evaluator for CI - `GET https://cipherhouse-btc-guard.pages.dev/api/stdio-schema` — JSON-RPC 2.0 / MCP (2025-11-25) tool schemas ## CLI & JSON-RPC stdio - `node cli.mjs psbt [--offline] [--json]` - `node cli.mjs fees [--json]` - `node cli.mjs relay wss://relay.damus.io [--json]` - `node cli.mjs stdio` ## Contact - Web: https://cipherhouse-btc-guard.pages.dev/ - X: https://x.com/cipher__house - Email: admin@ratingplay.cc