Nikos's avatar
Nikos
npub18cel...ulqe
Proud BTC Tech Nerd
Nikos's avatar
MolonLabeVC 2 months ago
GN all , dont forget to touch some grass... i need a break.. been a long grind this week..
Nikos's avatar
MolonLabeVC 2 months ago
Many of you have asked me what my vision is.. well put some thoughts on paper.. its still very much WIP and subject to all sorts of changes. No doubt .. View quoted note β†’
Nikos's avatar
MolonLabeVC 2 months ago
How many relays is your client connected to ?
Nikos's avatar
MolonLabeVC 2 months ago
GM ! Nice and frosty πŸ₯Ά let's see if our sat relay is operational in such -C
Nikos's avatar
MolonLabeVC 2 months ago
no one ? come on surely there are Freedom warriors out there that builds small size relays ? NO?? WTF do i need to start making people small home relay hardware ? View quoted note β†’
Nikos's avatar
MolonLabeVC 2 months ago
Nostr Gurus, i need your insight.. Need to build a small footprint nosrt Relay for the bitsatrelay User Terminal 1. anyone build a rpi5 with strfry ? image
Nikos's avatar
MolonLabeVC 2 months ago
BitSatRelay - Bitcoin Satellite Communication ================================================== BitSatRelay - Two-Way Satellite Communication + DM Bot ============================================================ πŸš€ Starting outbound bridge (Nostr β†’ Satellite) ============================================================ BitSatRelay - Bitcoin Satellite Relay ================================================== βœ… BitSatCredit extension connected: https://lnbits.molonlabe.holdings/bitsatcredit βœ… Nostr bot initialized with 9 relays Monitoring relay: ws://localhost:7777 Payment required: 21 sats per message Top-up page: https://lnbits.molonlabe.holdings/bitsatcredit Starting bridge... πŸ’¬ Initializing DM Bot (Dual-Channel) ============================================================ βœ… Nostr bot initialized with 9 relays DMRouter - INFO - βœ… DM Router initialized (dual-channel: internet + satellite) βœ… Nostr bot initialized with 9 relays βœ… DM Bot initialized (dual-channel (internet + satellite)) Bot pubkey: af3398a5c69381ed... Rate limit: 5.0s per user πŸ’¬ Starting DM Bot (Internet + Satellite) ============================================================ πŸ“¬ DM Bot - Monitoring for incoming messages Bot pubkey: af3398a5c69381edaa8881008e314bd30e95e8b2e9abf64230b243d3f3cbbb60 Monitoring 9 relays πŸ“‘ Starting inbound monitor (Satellite β†’ Nostr) ============================================================ βœ… Nostr bot initialized with 9 relays 🌐 Starting Internet DM Relay (User-to-User) ============================================================ Satellite Monitor - Inbound Message Processing ================================================== ⏳ Waiting 5s for outbound system to initialize... πŸ’¬ Starting Internet DM Relay (Internet β†’ Satellite) ============================================================ βœ… Monitoring for user-to-user DMs on ws://localhost:7777 βœ… Starting satellite monitor βœ… Nostr bot initialized with 9 relays βœ… Satellite monitor initialized (with DM processing) πŸ‘€ Monitoring: /run/user/1000/gvfs/smb-share:server=192.168.1.112,share=oscardata/RXimages πŸ“¦ Archive: /run/user/1000/gvfs/smb-share:server=192.168.1.112,share=oscardata/RXimages/processed βœ… Watchdog observer started πŸ’° Credits deducted: npub18cel6ufy796... (remaining: 99633 sats) πŸ“ Sending: 441 bytes as plain text βœ… Sent plain text via TYPE_IMAGE (uncompressed) πŸ“– Processing: tmpbvnf2his.txt (602 bytes) πŸ“„ Processing file: tmpbvnf2his.txt βœ… Parsed event ID: b4c3da1e9fcd5ec4... From pubkey: 3e33fd7124f174fc... Content: found the loop issue i think : if pubkey_hex == no... πŸ“ Detected kind 1 (text note/repost) βœ… Rebroadcast to 9/9 relays: b4c3da1e9fcd5ec4... βœ… Quote note created: 819754f2c8fc2ef0... βœ… Quote note published to 9/9 relays βœ… Complete: Rebroadcast + Quote βœ… Successfully rebroadcast event b4c3da1e9fcd5ec4... πŸ“¦ Archived: tmpbvnf2his.txt πŸ—‘οΈ Deleting duplicate (second pass): tmpbvnf2his.txt βœ… Successfully deleted duplicate πŸ“© DM from npub18cel6ufy796...: Hello πŸ“¨ Sending dual-channel DM to npub18cel6ufy796... πŸ›°οΈ Satellite PRIMARY - sending via satellite first... πŸ“‘ Satellite DM sent to npub18cel6ufy796... 🌐 Internet SECONDARY - sending via internet as backup... πŸ“¨ DM sent to npub18cel6ufy796... πŸ“‘ Internet DM sent to npub18cel6ufy796... βœ… Dual-channel DM sent successfully (satellite PRIMARY + internet backup) βœ… Dual-channel response sent to npub18cel6ufy796... πŸ“– Processing: tmpj_t6rweu.txt (821 bytes) πŸ“„ Processing file: tmpj_t6rweu.txt βœ… Parsed event ID: a218f3b760189f1b... From pubkey: af3398a5c69381ed... Content: TVSrpQ73+BqUNZQhJXyZEl+IpWPLAH3+kwpj9CxnfJixJNsKrF... πŸ“¨ Detected kind 4 (encrypted DM) ⏭️ Skipping DM from bot itself βœ… Successfully processed satellite DM a218f3b760189f1b... πŸ“¦ Archived: tmpj_t6rweu.txt πŸ—‘οΈ Deleting duplicate (second pass): tmpj_t6rweu.txt βœ… Successfully deleted duplicate πŸ’¬ User-to-user DM detected: 9807a7809164ef52... From: 3e33fd7124f174fc... To: c4f5e7a75a8ce368... πŸ’° Deducted 21 sats (remaining: 99612 sats) βœ… DM relayed via satellite πŸ“– Processing: tmp0hzyh5f4.txt (602 bytes) πŸ“„ Processing file: tmp0hzyh5f4.txt βœ… Parsed event ID: 9807a7809164ef52... From pubkey: 3e33fd7124f174fc... Content: gwJyl5q4vw1AUbfINHE84Q==?iv=K52T9J8iNXrXBoJPWqgP2A... πŸ“¨ Detected kind 4 (encrypted DM) πŸ“₯ Processing satellite DM: 9807a7809164ef52... From: 3e33fd7124f174fc... To: c4f5e7a75a8ce368... (USER) πŸŒ‰ Gateway relay: Relaying satelliteβ†’internet (even though we sent it internetβ†’satellite) βœ… Rebroadcast to 9/9 relays: 9807a7809164ef52... βœ… DM relayed to internet for recipient c4f5e7a75a8ce368... βœ… Successfully processed satellite DM 9807a7809164ef52... πŸ“¦ Archived: tmp0hzyh5f4.txt πŸ—‘οΈ Deleting duplicate (second pass): tmp0hzyh5f4.txt βœ… Successfully deleted duplicate πŸ’¬ User-to-user DM detected: 8e4f12b2ea2b4149... From: 9ae3adc7b2e77631... To: 153aef07ec4ab1e5... ⚠️ Sender has no account: npub1nt36m3ajuam... πŸ—‘οΈ Deleted old processed file: tmp5bf7hy01.txt πŸ—‘οΈ Deleted old processed file: tmpgpsigcb7.txt πŸ—‘οΈ Deleted old processed file: tmpijjf1th2.txt πŸ—‘οΈ Deleted old processed file: tmpns_6fta1.txt πŸ“© DM from npub18cel6ufy796...: Hello πŸ“¨ Sending dual-channel DM to npub18cel6ufy796... πŸ›°οΈ Satellite PRIMARY - sending via satellite first... πŸ“‘ Satellite DM sent to npub18cel6ufy796... 🌐 Internet SECONDARY - sending via internet as backup... πŸ“¨ DM sent to npub18cel6ufy796... πŸ“‘ Internet DM sent to npub18cel6ufy796... βœ… Dual-channel DM sent successfully (satellite PRIMARY + internet backup) βœ… Dual-channel response sent to npub18cel6ufy796... πŸ“– Processing: tmpnjn1lvxd.txt (821 bytes) πŸ“„ Processing file: tmpnjn1lvxd.txt βœ… Parsed event ID: 736b9957ada5c423... From pubkey: af3398a5c69381ed... Content: Do5yHrlsPPTejXMtcbUFEtkLHzbAwCW0KtJ7cEYRG0AiqkS7uX... πŸ“¨ Detected kind 4 (encrypted DM) ⏭️ Skipping DM from bot itself βœ… Successfully processed satellite DM 736b9957ada5c423... πŸ“¦ Archived: tmpnjn1lvxd.txt πŸ—‘οΈ Deleting duplicate (second pass): tmpnjn1lvxd.txt βœ… Successfully deleted duplicate
Nikos's avatar
MolonLabeVC 2 months ago
found the loop issue i think : if pubkey_hex == nostr_bot.private_key.public_key.hex(): return
Nikos's avatar
MolonLabeVC 2 months ago
apologies for the runaway endless loop of quoted messaged from the Satellite relay.. manage to get it into a death spiral of relaying it self !! Whoop whoop..
Nikos's avatar
MolonLabeVC 2 months ago
a very simplified TLDR of BitSatRelay The Architecture RELAY A (Location 1) RELAY B (Location 2) β”œβ”€ Local users β”œβ”€ Local users β”œβ”€ Local relay (ws://localhost:7777) β”œβ”€ Local relay (ws://localhost:7777) β”œβ”€ Satellite transceiver β”œβ”€ Satellite transceiver └─ Internet connection (optional) └─ Internet connection (optional) When INTERNET UP: User on Relay A β†’ Relay A β†’ Satellite β†’ Relay B β†’ User on Relay B ↓ Also publishes to internet relays (backup) When INTERNET DOWN: User on Relay A β†’ Relay A β†’ Satellite β†’ Relay B β†’ User on Relay B (ONLY path - satellite is primary!)
↑