Swarm is a distributed storage platform and content distribution service, a native base layer service of the ethereum web3 stack. The primary objective of Swarm is to provide a sufficiently decentralized and redundant store of Ethereum’s public record, in particular to store and distribute dapp code and data as well as blockchain data. From an economic point of view, it allows participants to efficiently pool their storage and bandwidth resources in order to provide these services to all participants of the network, all while being incentivised by Ethereum.
Swarm’s broader objective is to provide infrastructure services for developers of decentralised web applications (dapps), notably: messaging, data streaming, peer to peer accounting, mutable resource updates, storage insurance, proof of custody scan and repair, payment channels and database services.
From the end user’s perspective, Swarm is not that different from the world wide web, with the exception that uploads are not hosted on a specific server. Swarm offers a peer-to-peer storage and serving solution that is DDoS-resistant, has zero-downtime, fault-tolerant and censorship-resistant as well as self-sustaining due to a built-in incentive system which uses peer-to-peer accounting and allows trading resources for payment. Swarm is designed to deeply integrate with the devp2p multiprotocol network layer of Ethereum as well as with the Ethereum blockchain for domain name resolution (using ENS), service payments and content availability insurance.
Please refer to our development roadmap to stay informed with our progress.
Swarm is set out to provide base layer infrastructure for a new decentralised internet. Swarm is a peer-to-peer network of nodes providing distributed digital services by contributing resources (storage, message forwarding, payment processing) to each other. These contributions are accurately accounted for on a peer to peer basis, allowing nodes to trade resource for resource, but offering monetary compensation to nodes consuming less than they serve.
The Ethereum Foundation operates a Swarm testnet that can be used to test out functionality in a similar manner to the Ethereum testnet (ropsten). Everyone can join the network by running the Swarm client node on their server, desktop, laptop or mobile device. See Getting started for how to do this. The Swarm client is part of the Ethereum stack, the reference implementation is written in golang and found under the go-ethereum repository. Currently at POC (proof of concept) version 0.3 is running on all nodes.
Swarm offers a local HTTP proxy API that dapps or command line tools can use to interact with Swarm. Some modules like messaging are only available through RPC-JSON API. The foundation servers on the testnet are offering public gateways, which serve to easily demonstrate functionality and allow free access so that people can try Swarm without even running their own node.
Swarm is a collection of nodes of the devp2p network each of which run the bzz protocol suite on the same network id.
Swarm nodes can also connect with one (or several) ethereum blockchains for domain name resolution and one ethereum blockchain for bandwidth and storage compensation. Nodes running the same network id are supposed to connect to the same blockchain for payments. A Swarm network is identified by its network id which is an arbitrary integer.
Swarm allows for upload and disappear which means that any node can just upload content to the Swarm and then is allowed to go offline. As long as nodes do not drop out or become unavailable, the content will still be accessible due to the ‘synchronization’ procedure in which nodes continuously pass along available data between each other.
Uploaded content is not guaranteed to persist on the testnet until storage insurance is implemented (see Roadmap for more details). All participating nodes should consider participation a voluntary service with no formal obligation whatsoever and should be expected to delete content at their will. Therefore, users should under no circumstances regard Swarm as safe storage until the incentive system is functional.
Swarm supports encryption. Upload of unencrypted sensitive and private data is highly discouraged as there is no way to undo an upload. Users should refrain from uploading illegal, controversial or unethical content.
The Swarm is a Persistent Data Structure, therefore there is no notion of delete/remove action in Swarm. This is because content is disseminated to swarm nodes who are incentivised to serve it.
Always use encryption for sensitive content! For encrypted content, uploaded data is ‘protected’, i.e. only those that know the reference to the root chunk (the swarm hash of the file as well as the decryption key) can access the content. Since publishing this reference (on ENS or with MRU) requires an extra step, users are mildly protected against careless publishing as long as they use encryption. Even though there is no guarantees for removal, unaccessed content that is not explicitly insured will eventually disappear from the Swarm, as nodes will be incentivised to garbage collect it in case of storage capacity limits.
1.3. Available APIs¶
Roadmap is located at https://github.com/ethersphere/Swarm/wiki/roadmap
Swarm is experimental code and untested in the wild. Use with extreme care. We encourage developers to connect to the testnet with their permanent nodes and give us feedback.
1.6. Public gateways¶
Swarm offers a local HTTP proxy API that Dapps can use to interact with Swarm. The Ethereum Foundation is hosting a public gateway, which allows free access so that people can try Swarm without running their own node.
The Swarm public gateway can be found at https://swarm-gateways.net and is always running the latest stable Swarm release.
Swarm public gateways are temporary and users should not rely on their existence for production services.
1.7. Example Dapps¶
1.8. Reporting a bug and contributing¶
Issues are tracked on github and github only. Swarm related issues and PRs have labels prefixed with swarm:
Please include the commit and branch when reporting an issue.
Pull requests should by default commit on the master branch.
Prospective contributors please read the Developers’ Guide <https://github.com/ethereum/go-ethereum/wiki/Developers’-Guide>
Swarm is funded by the Ethereum Foundation and industry sponsors.
1.9.1. The Core team¶
- Viktor Trón - @zelig
- Daniel A. Nagy - @nagydani
- Aron Fischer - @homotopycolimit
- Louis Holbrook - @nolash
- Lewis Marshal - @lmars
- Fabio Barone - @holisticode
- Anton Evangelatov - @nonsense
- Janoš Guljaš - @janos
- Balint Gabor - @gbalint
- Elad Nachmias - @justelad
were on the core team:
- Zahoor Mohamed - @jmozah
- Zsolt Felföldi - @zsfelfoldi
- Nick Johnson - @Arachnid
1.9.2. Sponsors and collaborators¶
1.9.3. Special thanks¶
- Felix Lange, Alex Leverington for inventing and implementing devp2p/rlpx
- Jeffrey Wilcke, Peter Szilagyi and the entire ethereum foundation go team for continued support, testing and direction
- Gavin Wood and Vitalik Buterin for the holy trinity vision of web3
- Nick Johnson for ENS and ENS Swarm integration
- Alex Van der Sande, Fabian Vogelsteller, Bas van Kervel, Victor Maia, Everton Fraga and the Mist team
- Elad Verbin for his continued technical involvement as an advisor and ideator
- Nick Savers for his unrelenting support and meticulous reviews of our papers
- Gregor Zavcer, Alexei Akhunov, Alex Beregszaszi, Daniel Varga, Julien Boutloup for inspiring discussions and ideas
- Juan Benet and the IPFS team for continued inspiration
- Carl Youngblood, Shane Howley, Paul Le Cam, Doug Leonard and the mainframe team for their contribution to PSS and MRU
- Sourabh Niyogi and the entire Wolk team for the inspiring collaboration on databases
- Ralph Pilcher for implementing the swap swear and swindle contract suite in solidity/truffle and Oren Sokolowsky for the initial version
- Javier Peletier from Epiclabs (ethergit) for his contribution to MRUs
- Jarrad Hope and Carl Bennet (Status) for their support
- Participants of the orange lounge research group and the Swarm orange summits
- Roman Mandeleil and Anton Nashatyrev for an early java implementation of swarm
- Igor Sharudin, Dean Vaessen for example dapps
- Community contributors for feedback and testing
- Daniel Kalman, Benjamin Kampmann, Daniel Lengyel, Anand Jaisingh for contributing to the swarm websites
- Felipe Santana, Paolo Perez and Paratii team for filming at the 2017 swarm summit and making the summit website