4 ms·
I built something similar to this - but as a Twitter clone - at ETHWaterloo a couple of weekends ago. Posting messages this way is relatively expensive - storag
by joshuakelly 9y ago
I built something similar to this - but as a Twitter clone - at ETHWaterloo a couple of weekends ago. Posting messages this way is relatively expensive - storage on Ethereum isn't cheap. Using contract event logs saves you ~10x the gas cost. Here's the project for anyone interested: https://github.com/jdjkelly/transponder https://github.com/jdjkelly/transponder
The contract itself is simple:
pragma solidity ^0.4.15;
contract Transponder {
address public owner;
event Squawk(address indexed _author, string _text);
function Transponder() {
owner = msg.sender;
}
function squawk(string _text) {
Squawk(msg.sender, _text);
}
}
Others in the thread are questioning why you'd do this in the first place when the alternatives are so much cheaper. Well, censorship resistance for one. All of the major social media platforms openly engage in political censorship.
- 0x4f3759df 9y agoThere's a microblogging clone, twister, which works pretty well, but its not on the Eth blockchain http://twister.net.co/ http://twister.net.co/
- joshuakelly 9y agoThere's actually a full fledged Twitter clone on Ethereum - http://leeroy.io http://leeroy.io. The difference is that it uses full-fledged contract storage, so the cost-per-post is ~10x the gas. My attention has re-oriented towards Whisper instead, which ultimately is the right place for this in the web3 stack.
- abc-xyz 9y agoI really admire the work you are doing to fight censorship. I may be mistaken but it appears that posting messages that are impossible to hide/delete has been solved (since governments cannot afford to block BTC). However, the government can simply use DNS to block your website. Do you have any plans to overcome this? Any promising research that would make a website unblockable by China Great Firewall?
- joshuakelly 9y agoThe browser portion of the application does not need to be served from the internet. Dapps (decentralized apps), if they are well designed, do not require anything other than a copy of the HTML/JavaScript and access to a copy of the Ethereum Foundation blockchain (better yet: access to node receiving new transactions - but that's not necessary for historical reads). In fact, this application doesn't even have a website where it is hosted - that's unnecessary from a strictly technical point of view. If you're okay with high latency (i.e. you are primarily reading from blocks, not writing new transactions, which is probably an accurate profile for the /consumption/ of censored data), then a full copy of the Ethereum Foundation blockchain could be carried on a $40 microSD card and carried (or flown, or dropped), well, anywhere.