pull down to refresh

Bitchat: Decentralized peer-to-peer private messaging app

1/

2/ No Internet, No servers, No Phone numbers

3/ Scenario

4/ How relay works

5/ Multi-hop Communication

6/ Noise XX protocol

7/

Next posts will cover:
  • The Noise Protocol (encryption)
  • Ephemeral peer IDs (privacy)
  • E-cash x Bitchat (bitcoin)
Follow @Bitcoin_Devs for more bitcoin technical posts
This helps, thanks! The total range of only 300meters seems......limiting. -Tom
reply
I’ve heard a potential use case as when attending a large event with high concentration of devices, when traditional cellular networks struggle. Could be useful there, for sure
reply
Indeed, that would make sense.
reply
Yep, these are real-world applications mentioned in the whitepaper:
reply
0 sats \ 0 replies \ @Danni 1h
I agree
reply
Do relays have to be running a bitchat app in the background to act as relays?
If so, this relies upon network effect of people joining the network to help it expand
reply
Do relays have to be running a bitchat app in the background to act as relays?
IIRC relays must have the app running. The code below explains how relalys forward messages through the mesh network:
// From the message handling code:
// Relay broadcast messages
var relayPacket = packet
relayPacket.ttl -= 1
if relayPacket.ttl > 0 {
    // Probabilistic flooding with smart relay decisions
    let relayProb = self.adaptiveRelayProbability
    
    // Always relay if TTL is high (fresh messages need to spread)
    // or if we have few peers (ensure coverage in sparse networks)  
    let shouldRelay = relayPacket.ttl >= 4 || 
                     self.activePeers.count <= 3 ||
                     Double.random(in: 0...1) < relayProb
    
    if shouldRelay {
        // Add random delay to prevent collision storms
        let delay = Double.random(in: minMessageDelay...maxMessageDelay)
        DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
            self?.broadcastPacket(relayPacket)
        }
    }
}
If so, this relies upon network effect of people joining the network to help it expand
Yes, but I think it's a different kind of network effect. Traditional messaging apps need millions of users everywhere. BitChat just needs the people around you to have it when you actually need it (protests, disasters, events, conferences, ...)
reply
If I really need to send a private message, I use smoke signals or fax. Otherwise is all PUBLIC. Anything you do on internet is PUBLIC. Learn to separate private things from public.
reply
How are smoke signals or fax private? Fax is especially non-private, as phone company sees and can save everything, unencrypted. For smoke signals at least there are limited visibility. But, in any case, if you want something to be private, encryption is a must on top of any communication.
reply
please decrypt my messages over https://bitcoinfax.net/ not even a MiM can do it... smoke signals? I can invent my own signal language...
if you want something to be private, encryption is a must on top of any communication.
ONLY if you use internet, yes
if you want something to be private,
then do not post it online. PERIOD. Is really stupid to cry out about "protect my online privacy" when you continue to post private things on a public space. Internet is a public space, no matter how much privacy you want. Privacy means you do not share your private stuff in a public place.
reply
please decrypt my messages over https://bitcoinfax.net/
I am not a a phone company, so I can't do that, as I can't access the data. But provider for receiver can access that data. I don't see how relaying message through phone company is more secure than Internet or Bluetooth.
smoke signals? I can invent my own signal language...
Yes, you can, but, for example, AES-CBC is definitely better.
"Anyone, from the most clueless amateur to the best cryptographer, can create an algorithm that he himself can't break." / Bruce Schneier /
ONLY if you use internet, yes
No. Encryption was used since at least ancient Egypt for secret communications for a reason.
reply
But provider for receiver can access that data
If I send a stupid image with a hidden message, not even the provider can know what am I sending. Fax is still the best way to hide messages in plain sight.
Internet is just a joke nowadays.
In my early young years surviving the communism I invented my own language based on geometry signs, used with my closed friends. One day the security services found our signs, but not even after 30 years they couldn't decrypt our messages LOL
reply
Besides, bitcoinfax.bet will send it anyways over Internet.
If you are being watched by agencies, In Latvia it could be suspicious if you want to send fax for some strange reason, nobody uses it here for decades. :D
And how it differs if you send the same image with a hidden message over Internet?
One day the security services found our signs, but not even after 30 years they couldn't decrypt our messages.
Interesting!
0 sats \ 1 reply \ @OT 11h
30-300m is not very far. I can only think of one use case for this. When you're in a meeting or a conference. Otherwise a shouting voice should be able to carry a few hundred meters.
reply
Yep, these are real-world applications also mentioned in the whitepaper:
reply
It would be so great if this can become popular.
reply
0 sats \ 1 reply \ @crrdlx 13h
Bitchat is neat stuff, but...range. This would be great for a conference or concert or something like that, but fir everything else (aside from offline ecash payment which is fantastic) ...range. We need Reticulum/Meshtastic integration. https://njump.me/naddr1qqdxy6t5vd5xzarj943xjarrdpshgttjv46xjcm4d36k6q3qqpdufhjpel94srm3ett2azgf49m9dp3n5nm2j0rt0l2mlmc3ux3qxpqqqp65whrszcu
reply
As you mentioned “99.99% of people aren’t going to buy a dedicated device just for this”
I'm curious, what kind of range does Reticulum offer? (BitChat already claims a 300m range in its current state)
reply
Side note, I wish OP engaged more on posts like these
reply
Love these simple cartoon explanations.
They massage well my 80 IQ pleb brain.
reply
Glad to hear that
reply
People are hype because of the Dorsey factor. Just like nostr
reply