Broadcast messages

BM-NBQwVHs1EFQ8PsqsrUmUKwWuVkgo9Z68
May 15 11:41 [raw]

I've been experimenting with broadcasts. My first experiment was to subscribe to my personal BM address and send a broadcast to my subscribers. Why doesn't this work? I sent 2 messages and I'm subbed to myself but didn't receive anything.

[chan] bitmessage
May 15 13:15 [raw]

I think your test method is inaccurate as PyBitmessage takes some internal shortcuts when it detects messages to a self address. To test more accurately, try using two completely separate client instances (with different homedirs, see BITMESSAGE_HOME env var for details).

[chan] bitmessage
May 16 08:52 [raw]

It should be possible to receive your own broadcast by sending before subscribing (or unsubscribing then resubscribing if you sent while already subscribed) however due to the long standing "binary data stored as text" issue and incomplete fix, the tag of anything you send is stored as text while the tag of anything you receive from a peer is stored as blob and the "Display ? recent broadcasts" feature doesn't detect broadcasts where the tag stored is as text.

[chan] bitmessage
May 16 09:04 [raw]

Humour me.

[chan] bitmessage
May 16 09:25 [raw]

diff --git a/src/storage/sqlite.py b/src/storage/sqlite.py index 438cbdc..a1ba13e 100644 --- a/src/storage/sqlite.py +++ b/src/storage/sqlite.py @@ -55,7 +55,7 @@ class SqliteInventory(InventoryStorage): def by_type_and_tag(self, objectType, tag): with self.lock: values = [value for value in self._inventory.values() if value.type == objectType and value.tag == tag] - values += (InventoryItem(*value) for value in sqlQuery('SELECT objecttype, streamnumber, payload, expirestime, tag FROM inventory WHERE objecttype=? AND tag=?', objectType, sqlite3.Binary(tag))) + values += (InventoryItem(*value) for value in sqlQuery('SELECT objecttype, streamnumber, payload, expirestime, CAST(tag AS BLOB) AS btag FROM inventory WHERE objecttype=? AND btag=?', objectType, sqlite3.Binary(tag))) return values def unexpired_hashes_by_stream(self, stream): @@ -68,8 +68,8 @@ class SqliteInventory(InventoryStorage): def flush(self): with self.lock: # If you use both the inventoryLock and the sqlLock, always use the inventoryLock OUTSIDE of the sqlLock. with SqlBulkExecute() as sql: - for objectHash, value in self._inventory.items(): - sql.execute('INSERT INTO inventory VALUES (?, ?, ?, ?, ?, ?)', sqlite3.Binary(objectHash), *value) + for objectHash, (objecttype, streamnumber, payload, expirestime, tag) in self._inventory.items(): + sql.execute('INSERT INTO inventory VALUES (?, ?, ?, ?, ?, ?)', sqlite3.Binary(objectHash), objecttype, streamnumber, payload, expirestime, sqlite3.Binary(tag)) self._inventory.clear() def clean(self):

[chan] bitmessage
May 16 10:03 [raw]

Wow actually :) Is this on github yet?

BM-NBQwVHs1EFQ8PsqsrUmUKwWuVkgo9Z68
May 16 11:40 [raw]

This doesn't work either. In fact when I send a broadcast from my BM address the broadcast count for the network does not increase.

[chan] bitmessage
May 16 12:27 [raw]

u must 2 compurters for it to work. or modify src

[chan] bitmessage
May 16 12:55 [raw]

No need. One computer, one copy of the software, two homedirs. BITMESSAGE_HOME=/tmp/bmtest01 bitmessagemain.py & # this is client 1 BITMESSAGE_HOME=/tmp/bmtest02 bitmessagemain.py & # this is client 2

[chan] bitmessage
May 16 13:21 [raw]

okay so u can easily try out the spamfilter too made in a fork by TORIFIER

[chan] bitmessage
May 16 18:18 [raw]

link?

[chan] bitmessage
May 16 18:39 [raw]

fork by user "torifier"

BM-NBQwVHs1EFQ8PsqsrUmUKwWuVkgo9Z68
May 16 21:54 [raw]

Nice. I'll give that I try.

[chan] bitmessage
May 17 06:47 [raw]

>>This doesn't work either You didn't delete the subscription then subscribe again ensuring the "Display the ? recent broadcasts from this address" checkbox is checked. All the patch does is make that checkbox work when you subscribe to yourself.

BM-NBQwVHs1EFQ8PsqsrUmUKwWuVkgo9Z68
May 17 10:52 [raw]

OK it turns out I was sending out broadcasts since I just found them on beamstat. It's surprising that beamstat decoded them without originally knowing my address to subscribe to it.

[chan] bitmessage
May 17 11:04 [raw]

they say they record every bcast I mean broadcast does not really imply privacy , no ?

[chan] bitmessage
May 17 11:18 [raw]

From https://beamstat.com/broadcast "To add your own broadcast, simply announce it on any channel listed on BeamStat. It doesn't matter what you write in the announcement, but it is important that you send the announcement from the broadcast address."

[chan] bitmessage
May 17 11:42 [raw]

so every b-cast shows up on beamstat , I take it

BM-NBQwVHs1EFQ8PsqsrUmUKwWuVkgo9Z68
May 17 12:16 [raw]

Yeah except I didn't officially "announce" anything.

[chan] bitmessage
May 17 13:49 [raw]

so we need a chan like "NOT FOR BLOODY BEAMSTAT dont post to find-new-chan"

[chan] bitmessage
May 17 19:10 [raw]

no. for some unknown reason some broadcasts do not appear on beamstat.

[chan] linux
May 17 19:45 [raw]

we need a simple Tutorial explaing what shit shows on bmstat and what shit does not man OK ?

[chan] bitmessage
May 17 22:53 [raw]

Hah. I was right. I created a new address and sent a broadcast from it, nothing on beamstat.

[chan] bitmessage
May 17 23:24 [raw]

Probably beamstat is automatically treating every BM address as a broadcast. So if you create a new BM address and only use it for broadcasts they'd never know.

[chan] bitmessage
BM-2cWy7cvHoq3f1rYMerRJp8PT653jjSuEdY

Subject Last Count
(no subject) May 21 17:30 6
Feature request: delete all messages from user May 21 17:17 1
Github Wiki complaint May 21 08:49 12
EFAIL?! May 21 08:25 26
ERROR - Error Processing May 21 08:25 3
Curious May 21 02:17 32
Is bitmessage within whonix bad? May 20 21:24 14
Duplicate messages May 20 21:08 1
Download of Windows binary from Bitmessage.org May 20 07:25 3
How to create a "send only" bitmessage address May 20 04:35 1
/join #bitmessage on eris.us.ircnet.net :6667 May 19 21:46 3
hey - why not make pyBM as shitty as "Signal-App" by Marlinspike ? May 19 20:30 7
use Claws mail-App with pyBM and python May 19 20:28 5
A question May 18 23:24 2
A Few Bitmessage Internals for New Users May 18 23:08 5
May 18 17:33 1
Ideas for countering trolls and spam May 18 12:54 98
DARKNET DIRECTORY ASSISTANCE May 18 02:25 1
Broadcast messages May 17 23:24 24
2018 : Der junge Karl Marx -- youtube.com/watch?v=AbM76KUm4IM -- 2 hours "Le Jeune Karl Marx" May 17 20:24 1
Signal-App is complete shit May 17 20:24 13
May 17 19:49 2
OTR interception May 17 18:00 3
auto renew one's canary using broadcast or [chan] ? May 17 10:51 1
latest in the spy world May 16 14:14 3
Curious -- GUIfied pyBM-CLI May 16 13:47 1
efail vulns May 16 13:21 1
how does the namecoin feature work? May 16 07:24 3
Email campaign to promote Bitmessage? May 15 18:09 1
NSA doesn't joke, folks May 14 23:26 2
Beaker May 14 19:27 1
Bitmessage Bug - Re: Now, following my own advice, adding channel bitmessage and general to the blacklist May 14 16:21 3
Ideas for countering trolls and spam - technology. May 14 16:21 9
BITMESSAGE May 14 14:58 2
BM in firejail May 14 14:24 1
Team Revenge May 14 09:54 1
What are these messages? May 13 07:57 8
Now, following my own advice, adding channel bitmessage and general to the blacklist May 12 23:38 4
Bitmessage Bug? May 10 19:59 1
TOR -> VPN -> TOR May 10 14:57 2
Bitmessage on Raspi May 10 09:32 2
Bloom Filter for Routing May 10 09:04 1
Alternative treatment of Bitmessage addresses for use as public channels May 9 16:12 4
deterministic passphrases May 8 16:54 21
nothing wrong with suicide these days May 8 10:30 2
What's Peter Todd's public key? May 8 10:27 7
BMinstallMenu - easy download + run Bitmessage from py source in one single menu May 8 08:46 1
BMinstallMenu - easy download + run Bitmessage from py source in one single menu May 7 18:38 2
Why there are so many alternative Bitmessage implementations? May 7 18:31 14
modding pyBM May 7 18:17 4
bm hidden service settings May 7 10:48 1
bitmessage feature proposal May 7 10:38 1
This shit world May 7 07:22 2
Outgoing connections May 7 04:53 2
"time to live" ? May 7 03:27 2
OTR on Bitmessage May 7 02:06 31
Newbies! READ ME! (Bitmessage Primer) May 7 00:43 1
For Bitmessage Devs - GUI Interface Design May 6 23:18 1
O M E G A May 6 19:14 14
Bitmessage being sandbagged? May 6 05:55 3
Is Peter Surda around? Why stop signing technical messages? May 5 22:40 3
How to decrypt past objects? May 5 08:18 14
PyBM Error - no sufficient space in / partition but /home have lot's of free space May 4 13:42 3
Anybody seen this error before? May 4 12:58 4
<h1>HTML tags are enabled in subject tooltips</h1> May 3 22:17 3
is that right? May 3 07:33 6
RE: pyinstaller binaries do not run May 2 07:37 1
RE: hidden chan? May 1 06:05 1
hidden chan? Apr 30 16:15 2
bitmessage takes long to connect and finds only few peers Apr 29 10:54 5
pyinstaller binaries do not run Apr 29 09:43 4
ready-made Linux distro with BM included via TOR : "Merlot" Apr 29 09:27 3
landing page - better looks Apr 26 23:45 1
BMinstallMenu - easy download + run Bitmessage from py source in one single menu Apr 26 07:02 1
rewriting bitmessage Apr 24 02:23 1