433 points · by publiush · 4y ago · 186 comments
You can create either an immutable (uneditable) torrent site, or you can create a ed25519 keypair and create a mutable (updatable) torrent site.
This is great for blogging, whistle blowing, and other things. It also scales well since torrent technology is great although it had previous been pigeonholed to other use cases.
Please give it a try and let me know your thoughts! I don't take any credit for this since I just weaved the great technologies others already made together!
The best part of Federalist is reading and displaying the websites from BitTorrent using BEP-46. The Handshake part is less impressive for me personally, since it basically reads Handshake values from a service (query.hdns.io/dns-query).
If Federalist adds a Handshake daemon, it will be much more decentralized, but at the same time much heavier on resources.
For historical perspective, decentralized websites (or p2p websites) are here since like 20 years. Here's a super concise list of what I recall off the top of my head.
- Freenet is the first project I'm aware of doing that
- ENS+IPFS websites is a strong movement now (see esteroids.eth.limo, I'm a co-creator of this)
- ZeroNet was going strong like 5 years ago, and even though it's less popular now it's still functional and a nice project.
- Agregor browser brings decentralized website the Hypercore (a successor of DAT protocol)
- BitTorrent was supposed to have a project especially for decentralized websites (Maelstrom web browser), but it didn't took off eventually
- Magnetico is a search engine built on top of BitTorrent, very similar to Federalists, but without the Handshake part.
- Skynet is a project meant almost only for decentralized websites, based on Sia. They have integration with ENS, and afaik, also with Handshake (check it out!)
- Swarm, Namecoin etc. could also be used for decentralized websites. I saw some people doing demos with it, but can't recall any links/names atm.
You should absolutely take credit for your part in this. Others may have created the technologies you used, but you tied them together into something "more" than the individual pieces. There's room enough for all players to take their credit for their part in this existing.
One aspect of censorship resistance is the ability for people to publish and read content anonymously (or pseudonymously). Could you add something to the README about that threat model?
Also, I see that your IRC channel is hosted on Freenode. That seems an odd choice for a project that is opposed to censorship. Please consider a network with a better track record in that regard.
It doesn't actually allow you to publish and read anonymously without Tor or a VPN, but I will definitely recommend using both of those on the README. I do want to be careful about what is and isn't claimed, as I believe the world has become a bit dissatisfied with overclaims from decentralization projects lately.
I don't think I've come to the same conclusion about freenode (https://news.itsfoss.com/freenode-controversy/), and IRC is only decentralized if there isn't just one network anyway. I also don't think this is the right forum for this anyhow! You're definitely free to setup the same channel (#scarywater) on another network, and I'd be happy to be present there as well!
This article really obscures some facts. For example, it implies that Lee was the person providing for freenode, when in fact he was just one of many donors: most servers in the network were donated by non-profits. Likewise, the article says Freenode operators were not staff because they were not paid: they still donated their time and resources to keeping the network alive. Also, it says Freenode was "taken over" by Christel, which to my knowledge is not exactly correct: from my understanding, she was indeed granted responsibilities, but was not supposed to govern (as in, give orders) to the network.
Also, most of the drama took place after this article was published. Many chans which remained on Freenode were pushed out by the new management who seemingly ran regexes on all incoming messages, automatically taking over or banning any chan which had mentions of libera.chat. That is, until new management actually dropped the entire database (a huge "fuck you" to the faithful who remained) and started again from scratch.
All in all, Freenode's story is one of a collective project run by volunteers on their donated time/hardware turned into a top-down startup. It also seems the freenode.net homepage has been turned into some kind of newsboard without a lot of people but where lots of content appears to be "deleted". Strange new world: https://freenode.net/n/freenode/57/there-are-literally-78-us...
> IRC is only decentralized if there isn't just one network anyway.
Not exactly, as there is server-to-server federation to distribute the load (but it's not exactly decentralized in this case). But yes, decentralizing is better. But there's plenty of IRC servers where to host your chans: OFTC, tilde.chat, indymedia, hackint...
> For example, it implies that Lee was the person providing for freenode, when in fact he was just one of many donors: most servers in the network were donated by non-profits
You’re right, there were other server donors who provided servers on the network. However, the donations I provided were on a different order of magnitude financially. I provided many servers, of course, but also 7 figure funding [1]. That said, I’m definitely thankful for the server providers who were providing servers to us and continue to.
> Also, it says Freenode was "taken over" by Christel
All documentation both publicly and internally would refute this - Christel was fully in charge and the former staff was aware since it was explicitly written in the onboarding documents and on the website. Also, Tomaw was fully aware of this as well as of my ownership of freenode.
> Also, most of the drama took place after this article was published.
Again, untrue. Tomaw and I were in discussion and he was holding the network hostage for over a month prior to the article. prawnsalad of KiwiIRC and Snoonet was mediating and had had enough of Tomaw [2].
> All in all, Freenode's story is one of a collective project run by volunteers on their donated time/hardware turned into a top-down startup.
I think there is a misconception of the difficulty in running an IRC network. Given I have been a staff member off and on of other networks and continue to be on several, including on the coding teams, I can assure you that nobody would say this is a difficult time consuming thing. It’s not like open source code contribution.
Secondly, several members received monetary benefits - from me - in the form of flights, hotels, etc. like at DEFCON for example. The same people have looked me in the eye and said thank you before turning around and making up stories in a brazen attempt to slander me to take freenode. Not very upstanding people.
I think it’s pretty clear what they cared about when you review Libera months later and see that it’s a closed group run by the former freenode staffers, and they are now the oligarchs of Libera.
Finally, stop trying to force or pressure people to leave freenode. You’re acting like the Libera staff who actually spent months writing open source projects with the same falsehoods asking them to leave. It’s a form of censorship but worse it’s bullying.
As for me and freenode, we have been in legal discussion to truly decentralize the network and give it to the people - and that is what is happening. I have always been the custodian and financial supporter supporting freenode, even when the former staff was facing legal action from users who they had harassed, so this isn’t outside of my resume and track record - I obviously care about it deeply.
Freenode will belong to the people where it belongs, not the former staffers hands.
[1] http://techrights.org/2021/05/22/freenode-misinformation-or-...
[2] https://gist.github.com/prawnsalad/4ca20da6c2295ddb06c164679...
Can someone tell me what is going to happen if let's say a terror group decides to use this for propaganda purposes, along the lines of religious fundamentalism/executions as we've witnessed before? Who is going to take the blame for providing them with what is advertised as an unblockable platform?
Has abuse even been factored in?
The more information people have had in the history of humanity, the more freedoms and liberties we have also had. We would likely still be living in monarchies if not for the spread of information -- North Korea is a prime example.
If information is good and people agree with it, they will consume it and the swarm will be well seeded and public consensus will have spoken. If information is bad and people disagree with it, they won't consume it and the swarm will be sparse at best, at which point, it will be easy for ISPs and others to block access to these swarms.
Torrents have been around for a long time, but terrorists haven't really utilized them much. On the other hand, anime really has to give its thanks to Bram haha.
Just because there are gun abusers, you wouldn't want to take away the 2nd amendment which keeps the government in check. The same goes for information or discourse and the 1st amendment. The day we censor ourselves is the day we throw away liberty.
I think the important question now is whether it's irresponsible to build channels that (A) terrorists will find useful, (B) will allow them to look more savvy and attractive than they actually are, (C) seed their ideas to a wider audience than they have - see [1] - and (D) count on less motivated people with nonviolent ideas and less time on their hands to offer countervailing ideologies and "win" the space. The space you're creating and enabling.
[1] People with more time on their hands and/or a more absolute/violent agenda are more apt to find ways to game a system, whether it's a swarm or a newsfeed. Their time and motivation are asymmetrical to the normal functioning of a marketplace of ideas in which good/logical ideas are supposed to outperform bad/emotional appeals. The true question is not whether this platform can or will be gamed, or trying to guess and preempt how it will be gamed, but deciding whether it's immoral to exert your intellect to give leverage to griefers by giving them more visible surface area. If the result is something that only marginally helps average people but drastically improves the lot of griefers, then the surface area you're providing them to attack everyone else will be exponentially larger than the defensible area of reasonable ideologies you hope to have counter the bad ones.
In other words, all the talk of open ideas is true in a truly open marketplace, but violence tends to fill a vacuum, and in a closed system or especially a new, empty space with experimental tooling, it is entirely possible for bad actors to drive out good ones.
I don't think this is a good comparison. The second ammendment was appended in 1791 if I'm not mistaken, i. e. shortly after the war for independence on american soil against an empire, which was fought with militias (hence the third ammendement). That's a totally different scenario than the 21st century.
It should be monitored who acquires an assault rifle. Or you end up with the highest rate of school amok per capita globally[1], because gun owners are either mentally unstable themselves or not capable of preventing a mentally unstable person from getting hold of the rifle due to a lack or knowledge. Licenses make just as much sense as they do for cars.
Which brings me to the division of powers. The constitution balances executive, legislature and judiciary in its three articles. It is very difficult for either of these organs to abuse power without being met with a restriction. This has been the concept since the very beginning, as you surely know judging by the gh handle, and you bet the federalist paper authors favored an institutional solution over arming each citizen.
In other words, the second ammendement is just as little of an ultimate for checks and balances as the web 3 is for whistleblowing. We already have securedrop and globalleaks. Going a step further is possible, but not strictly necessary, and should not be treated as such in my opinion.
[1] https://www.statista.com/statistics/1155011/number-school-sh...
Asking what if some group we want to stop uses a technology misses the point. Paper can be used by terrorist to make plans for terror and communicate should we reconsider paper? Who is to blame when paper and pen are used to do things we disapprove of?
Same with this. If bad guys can be censored then so can good guys.
Using a private key for mutations is a great idea. I believe it is similar to how BitTorrent Live (undocumented) was implemented, where new content was added to a merkle tree. That is at least how RFC7574 proposed doing it
A few points:
- is this using webtorrent-the-library or webtorrent-the-protocol ? If it's the latter it's a bit useless. The only reason the protocol exists is to make web browsers speak a similar language as bittorrent, but both protocols are strictly different. Which means if you want to talk both you need to implement both (and fortunately webtorrent-the-library does so)
- The Readme says this is good for whistleblowing. Actually this is one of the worst ways of doing it. When using DHT you tell the whole world your IP is interested in a specific content. When using bittorrent your IP connects with other peers interested in a specific content. There is nothing easier for LE than watching a specific content of interest and see who is interested in it: journalists, sources, ... An anonymisation layer is mandatory for this use case
I'm also working on a decentralized distribution mechanism based on torrents, and while i've being working on a different architecture, the network mechanism are basically the same with a couple of differences on the network level.
In my case i'm working on a very customized version of chrome where the web api is actually available for native applications beyond Javascript.
> dmt (mutable torrent BEP-46),
Is dmt supported (made scalable?!) by the existing torrent infra structure (DHT/trackers/etc??). Sorry if this question doesnt make sense.
head
|
|- post.txt
+- prev.torrent
prev
|
|- post.txt
+- prev.torrent
You get the idea.
With the not yet widely-supported BitTorrent v2, you can just add files to a new torrent and seeders of the old torrent will seed the files that are also in the new torrent too.The words unblockable and uncensorable have been misused in the documentation.
Real-world example: 99% of my colleagues cannot bring their own devices into our corporate workplace to access torrents via DHT. There are some network rules and filters in place to block most non 443 traffic. Those 99% are effectively blocked.
Setting a remote HAProxy server to mask miscelaneous traffic as https was a practical way out through the firewall, which then exposed my HAProxy server to a block by IP rules.
This is an idea I'd love to be wrong about. Bock-resistant is the most appropriate statement for this project in its present form. Change my mind :)
Also -- and I'm unfamiliar with handshake -- but is the sort of thing that could work over ad hoc networks?
Handshake names are decentralized and on chain, so as long as you have access to read the chain, it would work over ad hoc networks as well (and offline/local).
This is the drawback of traditional decentralized networks compared to blockchain-based networks such as Sia/Skynet, where users can pay to get their files hosted with guaranteed service level.
ENS domains can be resolved to Ethereum wallet addresses, IPFS, Bitcoin addresses or any other public key or string.
I'm OK with this (and that's more or less what IPFS does), you only need to pin a couple hashes, and one could build a website directory using this project. Or even a recursive DNS with zone delegation to other mutable torrents.
I like the idea of outgoing links being other hashes.
There is actually a ton of interesting and useful innovation happening in the crypto space that isn’t necessarily crypto-specific. If hacker news wasn’t so die-hard anti-crypto then more people would see that.
- zero-knowledge proofs
- quadratic funding
- verkle trees
- etc.
I do think that the https://getdweb.net/ community is a model of how that crossover can work. It's also something I think a lot about at FFDW, which because of IPFS and Filecoin, has its feet in both camps.
Subsequently, how else besides using a crypto coin would it be feasible for a decentralized network to take payment?
So I see the address in the screenshot starts with federalist://
Is it possible to access these sites with a normal web browser from the internet too?
I do think there is a way - since the beautiful WebTorrent (https://github.com/webtorrent/webtorrent) can do so in browser. I'm keen to see something like this in a normal web browser (if possible as an extension even), hopefully developed by someone with better skills than me haha!
There it should have a torrent info payload that your client can turn into a ordinary torrent, where you can proceed to download the files, and can open in your browser on your local filesystem.
It's an exciting project.
git clone https://github.com/publiusfederalist/federalist
cd federalist
npm install
npm start
For publius, there are two options, I'll start with option 1, which is an immutable (no updates) model:
git clone https://github.com/publiusfederalist/publius
cd publius
npm install webtorrent supercop.js
./key
./publius &
Then you can either share that magnet link/browse that link, or take the further step to add it as a TXT record on the Handshake blockchain for a name.
If you would like to do it mutably, there is an additional step:
./seed &
Then, you can share the link created by this and create the TXT record with this one instead.
When you update your blog, you can edit the files in the web3root folder, and then simply restart publius and seed.
Could this support user authentication for uploading content? Maybe with something like metamask?
Using this tech to make a medium/substack/twitter-style site would lower the barrier to entry for non-technical journalists.
> In the browser, WebTorrent can only download torrents that are seeded by a WebRTC-capable torrent client.
I'm very thankful to WebTorrent, DMT, Handshake and Electron for making things possible.
The only two kinds of successful content types that I’m aware of are pirated movies on Torrent and cryptocurrencies on the blockchain. They all depend on centralized discovery(torrent websites and exchanges).
Which makes me wonder, are these decentralized websites or social media platforms attacking the right problems?
It's an alternative transport, not application layer. If you can imagine doing anything with the world wide web , or ftp, you can imagine what this is for. It can transport hypertext files around, or whatever other file type you want.
In the web case, it'd just be some local http files you could open in a local file origin. There'd be no server. But that's still a way to exchange whatever art or media you could ever imagine.
We are bounded only by imagination. The internet is built around the Internet Protocol (IP), a way of streaming data arbitrarily from one computer to another. It has been up to us to imagine uses, to chase new possibilities. What do you think the use cases for IP are? Can you see what that made possible? Your question is in effect that, and trying to grasp at how broad, how possible, how potentiated this great work is is dauntingly hard, for we could share any type of content we want with either.
It shouldn't be possible for you to end up with nowhere to speak, that's why the public square exists, and I accept there is a need for an online public square that is currently pseudo-fufilled by private social media sites, but that doesn't mean deplatforming is bad.
Freedom of expression includes the freedom not to endorse or express an idea, and platforms shouldn't be forced to allow people to use them to amplify their speech, as then that right is violated, enforced expression is just as harmful as enforced silence.
https://github.com/publiusfederalist/federalist/blob/3670867...
It's temporarily using hdns.io as many people still do not have an hsd node installed. A later version will be shipped with a light weight SPV resolver, at which point, the last piece of the puzzle will be complete.
As such, what is the use case?
Everything, of course, can be blocked at some point, but the thing to remember is that there are other kinds of contracts that existed long before smart contracts - and these things are already leveraged in society.
The internet isn't going to disappear tomorrow, but I would agree there are longer term risks, so let's build today.
There's been a lot of talk about decentralization lately, and Cypherpunks write code. So I wrote code instead of a blog post.
I also don't think it's accurate. Handshake is a cryptographically certified way of establishing identity . Since torrents are now mutable via handshake, it seems like webtorrents can be updated & moved as needed. Further, peer-exchange processes mean that having the initial seeds up probably isn't even a requirement. Even if one particular ip address or site gets cut down, the swarm can use other webtorrent trackers to re-spawn & carry-on.
Aside from your criticism being either inaccureate or misleading, I'd also say the use case doesn't need to, imo, be 100% perfect in every way to be worthwhile. I'm glad someone did seek better, & bothered. A decentralized, updateable, browser-based torrent is incredible leap for a web of data, for interconnection. Even if it's not 100% completely uncensorable, it's many leaps in the right direction, towards decentralization. Especially decentralization without coordination/consensus, which I think is great & vast improvement over the harsh & strict type of computing that *coins have dominated the field with. This work is far more interesting to me.
The project is marketed as unblockable, etc and yet we both conclude it is blockable from the start with existing network management tools that are deployed in places like Iran and China.
I was asking a genuine question of use case.