官术网_书友最值得收藏!

Whisper and Swarm

Whisper and Swarm are a decentralized communication protocol and a decentralized storage platform respectively, being developed by Ethereum developers. Whisper is a decentralized communication protocol, whereas Swarm is a decentralized filesystem.

Whisper lets nodes in the network communicate with each other. It supports broadcasting, user-to-user, encrypted messages, and so on. It's not designed to transfer bulk data. You can learn more about Whisper at https://github.com/ethereum/wiki/wiki/Whisper, and you can see a code example overview at https://github.com/ethereum/wiki/wiki/Whisper-Overview.

Swarm is similar to Filecoin, that is, it differs mostly in terms of technicalities and incentives. Filecoin doesn't penalize stores, whereas Swarm penalizes stores; therefore, this increases the file availability further. You must be wondering how incentive works in swarm. Does it have an internal currency? Actually, Swarm doesn't have an internal currency, rather it uses ether for incentives. There is a smart contract in Ethereum, which keeps track of incentives. Obviously, the smart contract cannot communicate with Swarm; instead, swarm communicates with the smart contract. So basically, you pay the stores via the smart contract, and the payment is released to the stores after the expiry date. You can also report file missing to the smart contract, in which case it can penalize the respective stores. You can learn more about the difference between Swarm and IPFS/Filecoin at https://github.com/ethersphere/go-ethereum/wiki/IPFS-&-SWARM  and see the smart contract code at https://github.com/ethersphere/go-ethereum/blob/bzz-config/bzz/bzzcontract/swarm.sol.

At the time of writing this book, Whisper and Swarm are still under development; so, many things are still not clear.

主站蜘蛛池模板: 耒阳市| 建湖县| 布拖县| 称多县| 神农架林区| 丹巴县| 铁岭市| 临颍县| 威海市| 台山市| 色达县| 嘉荫县| 长治县| 天镇县| 红原县| 绵阳市| 万山特区| 南溪县| 新巴尔虎右旗| 溧水县| 秦皇岛市| 新昌县| 农安县| 平远县| 彰武县| 奉贤区| 永丰县| 衡阳县| 郸城县| 兴安县| 澄城县| 兰坪| 玛曲县| 淮安市| 锡林郭勒盟| 兰西县| 堆龙德庆县| 临猗县| 垣曲县| 泸定县| 虎林市|