The carbon vote: how do smart contracts work together with out-of-chain events?

Published: Nov. 15, 2019, 9:52 a.m.

b'One of the ongoing topics is the use of smart contracts for real life applications. How does a smart contract work together with out-of-chain events? What is relevant to handle on the blockchain, what adds and does not add to the quality of the project by handling it there?\\n\\nIn this episode, our Head of Research, Dr Lewin Boehnke, guides the discussion through the complete code of a contract that is both extremely minimalistic and highly consequential in its use of the blockchain. \\n\\nHere is a bit of background on the carbon vote that determined the future path of Ethereum after The DAO hack: \\n\\nThe smart contract is comprised of merely 15 lines of code, 6 of them empty or comments. Essentially only one line is relevant.\\nSee the code here: http://v1.carbonvote.com/\\n\\nWe discuss how this was sufficient as a full voting contract.\\n\\nDuring the original session, we had the contract code in front of us. \\nFor reference, here is the full contract code: \\n\\n----\\n/**\\n *Submitted for verification at Etherscan.io on 2016-07-06\\n*/\\n\\ncontract Vote {\\n event LogVote(address indexed addr);\\n\\n function() {\\n LogVote(msg.sender);\\n\\n if (msg.value > 0) {\\n msg.sender.send(msg.value);\\n }\\n }\\n}\\n----\\nSource: https://etherscan.io/address/0x58dd96aa829353032a21c95733ce484b949b2849#code'