15 November 2019

Podcast:Knowledge Session – the carbon vote and how smart contracts work together with out-of-chain events

Dr. Lewin Boehnke

Dr. Lewin Boehnke

CTO bei Crypto Storage AG und Head of Research bei Crypto Finance AG

Über den Autor

Listen & Subscribe to our Podcast on:

Spotify      |    Apple Podcast    |     Soundcloud

One of the ongoing topics in the discussions is the use of smart contracts for real applications. How does a smart contract work together with out-of-chain events? What is valuable to handle on the blockchain, what does not add the to the quality of the project by handling it there?

In 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.

Here is a bit of background on the carbon vote that determined the future path of Ethereum after The DAO hack:

The smart contract is comprised of merely 15 lines of code, 6 of them empty or comments. Essentially only one line is relevant.
See the code here:

We discuss how this was sufficient as a full voting contract.

During the original session, we had the contract code in front of us.
For reference, here is the full contract code:

*Submitted for verification at on 2016-07-06

contract Vote {
event LogVote(address indexed addr);

function() {

if (msg.value > 0) {