News for hackers. Stuff that matters.
Re:Cabal: A peer-to-peer, off-grid, community-first, hackabl... by supermatt on Sunday January 10, 2021 @12:16PM (#25716837)
How does peer discovery work? Im assuming there must be some central server(s) to handle the bootstrap? I had a quick scan through the github projects, but couldnt see any high level documentation explaining the architecture. Would appreciate some insight!
Re:Cabal: A peer-to-peer, off-grid, community-first, hackabl... by nanomonkey on Sunday January 10, 2021 @12:22PM (#25716913)
It's built on the Hypercore Protocol [0](previously known as DAT), so I would assume DHT (Distributed Hash Tables).

[0]https://hypercore-protocol.org/

Re:Cabal: A peer-to-peer, off-grid, community-first, hackabl... by jakswa on Sunday January 10, 2021 @12:21PM (#25716893)
"Currently searches across and advertises on the Bittorrent DHT, centralized DNS servers and Multicast DNS simultaneously."
Re:Cabal: A peer-to-peer, off-grid, community-first, hackabl... by Sayrus on Sunday January 10, 2021 @12:26PM (#25716960)
Implementations details can be found on discovery-channel GitHub's [0]

As far as I can tell Cabal uses discovery-swarm [1] for connection management.

[0] https://github.com/maxogden/discovery-channel

[1] https://github.com/mafintosh/discovery-swarm

Re:Cabal: A peer-to-peer, off-grid, community-first, hackabl... by supermatt on Monday January 11, 2021 @02:33AM (#25725851)
Oh yeah, I understand that bit - but how does it connect to the DHT in the first place. I couldnt see any information on where it connects when you arent yet peered (i.e. how does it bootstrap).
Re:Cabal: A peer-to-peer, off-grid, community-first, hackabl... by oftheoaks on Monday January 11, 2021 @12:08PM (#25731923)
There are a collection of hyperswarm bootstrap node IPs that can get the discovery process started for new peers.
Re:Cabal: A peer-to-peer, off-grid, community-first, hackabl... by supermatt on Tuesday January 19, 2021 @08:23AM (#25833166)
Many thanks - is this in the codebase or handled via some config? I couldnt see it from my (limited) searching.