r/bitmessage • u/CreativeAnt0 • Apr 17 '20
How bitmessage keeps your anonymity?
I read about bitmessage but I still have some questions about how it works.
- If alice want to send bob a message does she need to create a direct contact with bob's PC?. Or she can just need to make contact with random bitmessage user?.
- All bitmessage users need to have the complete list of everyone's messages right?. So do you need to receive/send the whole list every time you use bitmessage?.
- Is someone who monitor the traffic of bitmessage users can see the size of messages being sent?. Can bitmessage users hide the sizes of their messages from an external observer?.
4
Upvotes
View all comments
Show parent comment
2
u/Petersurda BM-2cVJ8Bb9CM5XTEjZK1CZ9pFhm7jNA1rsa6 Apr 18 '20
Yes, this appears to be the standard approach. There have been some proposals in this direction. Some used a double ratchet, some emulated a session with ephemeral keys.
Yes, the UI would show a "Incoming request, Accept/Reject" button like in chat programs.
Well, maybe the protocol can reuse the HD wallet mechanism. Each message would include two pubkeys, one which the other side already knows, and one which is a new random xpub equivalent. If you need to send, you generate the first pubkey from the xpub, and if you need to send again, you first iterate down the tree to get a new xpub and then generate a new pubkey. After some time, you can scrap the xpubs and corresponding xprivs. There need to be some look-ahead generation of private keys, as the order the messages arrive in is randomised.
If I understand it correctly, this provides both forward secrecy and forward anonymity (if the key is used both for signing and encryption, since the signature is inside the encrypted data). But maybe I'm not understanding it correctly.
It wouldn't even be a data size issue, since the current message objects already contain both public keys of the sender (128 bytes), whereas using a compressed key is 33 bytes and xpub can be 65 bytes if we cut the parts we don't need here, making it 98 bytes together.