Bitcoins, Kryptowährung und Blockchain – was bringt die Zukunft?

23rd October 2018, 2. Forum „Das gute Geld – Investieren mit MehrWert“ Evgeniia Filippova, Senior Scientist @Cryptoeconomics Institute WU Vienna Ledgers

Ledgers are used to: - record economic activities; - prove the ownership; - prove the transfer of value of assets (tangible / intangible) among various stakeholders

Bank Accounts Land Registries Academic Certificates Every ledger you know is centralized with a ‚trusted‘ Hotel Reservations Medical Records Citizenship Records record-keeper If you had to define Blockchain in 3 words?

A distributed ledger Curios case of the Rai Stones

500 AD, Island of (now ) Yappies had a problem: a strange form of (fei stones) Solution: Decentralized Ledger: - Distribution of Fei stone ownership across all Yappies - When a Fei stone was spent, the new transaction was shared across everyone Basic Idea Behind (Bitcoin) Blockchain

• Peer-to-peer electronic transactions and interactions • Without financial institution • Cryptographic proof instead of central trust • Put trust in the network instead of in a central institution BLOCKCHAIN So … What is Blockchain?

Blockchain is a bundle of distributed ledger technologies that can be programmed to record and track anything of value without involvement of the third trusted party

TECHNICAL Back-end database that maintains a distributed ledger, openly BUSINESS Exchange network for moving value between peers LEGAL A transaction validation mechanism, not requiring intermediary assistance What is Blockchain?

NETWORK Layer DATABASE Layer

STATE Layer time What is Blockchain?

NETWORK Layer DATABASE Layer

1. Transaction event

A B

Digital signature

STATE Layer time What is Blockchain?

NETWORK Layer DATABASE Layer

1. Transaction event

A B

Digital signature

2. Bundled transaction data STATE Layer time What is Blockchain?

NETWORK Layer DATABASE Layer

1. Transaction event 3. Validation Consensus algorithm

A B

Digital signature

2. Bundled transaction data STATE Layer time What is Blockchain?

NETWORK Layer DATABASE Layer

1. Transaction event 3. Validation Consensus algorithm

A B B

Digital signature

2. Bundled 4. Updated, transaction data distributed, historical STATE ledger Layer time Public Key Cryptography – Digital Signatures

Digital keys are created and stored offline and consist of a C r mathematically-related Private-Public key pair, created using the y Elliptic Curve Digital Signature Algorithm (ECDSA). p t o g Private Key (K priv) and Public Key (K pub) r a p Public key is generated from the Private Key using a one-way h y cryptographic hash function Public Key Cryptography – Digital Signatures

C The sender encrypts the message M using the r recipient‘s public key: C=encrypt(M, Kpub) y p The recipient decrypts message C using his own t private key: M=decrypt(C, Kpriv) o g r Where: C is the result of encryption (or a „ciphertext“) and M is the decrypted message (or p h „plaintext“) y

Kpub and Kpriv can are interchangeable: C=encrypt(M, Kpriv) then M=decrypt(C,Kpub) Public Key Cryptography – Digital Signatures To make a transaction: To verify a transaction T received with 1. Create a transaction T C signature S and public key: r 2. Select subset M of 1. Select subset M of the information transaction (ex. Transaction y in transaction T p instructions, etc.) t 3. Compute hash H of M: H = 2. Compute hash H of M: H = o sha256(M) sha256(M) g r 4. Compute a signature S by 3. Decrypt signature S with the public a encrypting hash H with the key: H‘=decrypt(S, Kpub) p sender‘s private key: h S=encrypt(H, Kpriv) 4. Compare H and H‘. If they match, y 5. Send the signature S and the then the signature is valid and the public key along with the transaction is valid. transaction to miners Public Key Cryptography – Digital Signatures Both the public and private keys are stored in a Bitcoin wallet Bitcoin wallet does not contain any Bitcoins, only the Private-Public key C r pairs as mechanisms that allow you to access your funds y p t Example: o g r a p h y How is the new block added to the chain? To add a new block to the chain, a miner has to finish what is called a cryptographic proof-of-work problem. C G r a This proof-of-work problem: y m p e a. Is different for every block in the chain; t o T b. Involves a particular kind of algorithm called a hash function. g h r e 1. SHA-256, 64 characters long a o Input Hash function Output 2. One-way p r 3. Changing input a little bit h y changes output dramatically y

Evgeniia Hash function D35F0A9DA54EFE7F5ACEAE1B0E3427E65F08651A3A2A2C5A8D501B2812EE75D4

Evgenia Hash function EF34097BA51FC87FFA044E4F75EBC2E69ABA8C93BF249C653FA6890312E7F0E5 How is the new block added to the chain? Proof-of-work problem:

A hash of the contents of the current block (all of A random number that can be used just once C G transactions, some meta-data, reference to the + (= nonce) r a previous block) y m p e t Goal: to find a hash that has at least a certain number of leading zeroes. o T g h Example: r e a o 00000002a5c46af8c3442b8ce70fb5fcb053f2334ce0e518b48ed1d20000000000000000fce92 p r 0a9266470c7c9292e8e4a5a816eee86fe7e1d06c6d72f21487bfac6cc91533acfbb1900db9945 h y 6c6f6900000080000000000000000000000000000000000000000000000000000000000000 y 0000000000000000000080020000

Find the nonce to get this output (hash):

000009ff7ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069 How is the new block added to the chain?

When a miner finally finds a nonce that works: C G a. He wins the block r a y m b. Nonce gets appended to the end of the block, along with the p e t resulting hash o T c. The block gets sent out to other miners in the network g h r e d. The miners run the hash function with the nonce in order to verify a o p r that it works h y y e. If majority of miners accept it, the block gets added to the chain Problems with mining Some statistics about mining

The system is based on the assumption that the majority of computing power (i.e. at least 51%) will come from hones nodes

Mining performance is measured in hashes/sec.

The Hashrate of Bitcoin network: >20,000,000 Tera Hashes/sec.  to mine one block per day the speed of should be 833 Tera Hashes/second

Solo mining/mining pools

Mining hardware: from CPU mining (on a user’s PC) to ASIC mining (Application-Specific Integrated Circuits) Hashrate distribution Global Bitcoin Nodes Distribution Alternative consensus mechanisms

Consensus Mechanism = a crucial aspect of Blockchain platform Enables decentralized nodes to agree on the state of a ledger, without trusting each other/without third party

Others Proof-of-work Proof-of-stake Proof of Importance - All miners in the blockchain - Pseudo-random compete to generate the next selection of the node to Proof of elapsed time block by solving extremely validate a creation of the difficult cryptographic puzzles new block, based on the respective stake in the PAXOS - The node that solves the puzzle Blockchain first may propose the next Proof of capacity block which is checked for validity and the correct solution of the puzzle by other nodes

Summary: what is Blockchain?

The network stores New blocks get added to C all information in Blockchain network by consensus r cryptographically of network miners at even time y secured data pieces intervals p called blocks t o Blocks store Miners get rewarded for g information about validating transactions and r the previous block, adding new blocks a thus, they are p chained together „Genesis“ block h using cryptography y Game Theory Each block has limited storage size Each node (computer) on the network stores a copy of the entire Blockchain P2P Networks Foundations of Blockchain

Every node of Blockchain network is a client as well as a server, holding identical copies of the application state

P2P Networks

BLOCKCHAIN Game Theory Cryptography

Incentive models are included in the Blockchain Is used to provide security for a Blockchain through a consensus mechanism network Basic concepts: hashing, keys, digital signatures, homomorphic encryption 4 Disruptive Benefits of Blockchain

Disintermediation Immutability of Single source of Smart Contracts of Trust Record truth Smart Contracts

- The concept first introduced by Nick Szabo in 1994, technologically enabled by Ethereum - Self-enforced & self-executed contracts - Software programs that live on a Blockchain and form the basis of many of the new Blockchain applications - Essentially automated systems that can provide services in exchange for cryptocurency - Smart Contracts are NOT limited to movements

Smart Oracles: off-chain data sources (ex. identity, address, certificate etc.) that a can use to modify its behavior. Benefits of Smart Contracts - They may automatically enforce power equality of all parties involved - They protect an individual‘s rights by enforcing reasonable expectations for the signee - They eliminate the possibility of any signatory defaulting on their obligations

In a traditional centralized system: parties seek remedial action through the legal system Types of Blockchains More elaborated Blockchain taxonomy

Different classification criteria, for ex.:

- Transaction capability - Security & Privacy - Identity Management - Consensus algorithm „Blockchain can find applications in any industry, where the transactions take place“ Blockchain has applications in… (Sultan et al. 2018)

Banking & Payments Healthcare Insurance Online Data Storage

Media Crowdfunding Music Voting

Supply Chain Cybersecurity Real Estate Ride Sharing Management

Energy Forecasting Government Publishing

Charity Internet of Things Retail Art Hard facts: Top 3 countries: Netherlands, Germany, US Blockchain & Energy Most common use case: P2P energy trading

Australia SOLARA‘s Blockchain platform creates a trustless PV energy provenance records

China P2P platform for a distributed US energy system, focus on P2P Solar energy trading within microgrids community of Brooklyn Active in Philippines and China Germany Platform that allows the car to process transactions autonomously and in real- time via the Blockchain Hard facts: More than 200 use cases for Blockchain in Blockchain & Insurance insurance currently available

France Insurance against flight delay for any cause Automatical reimbursement of eligible passengers

Germany Blockchain-based parametric insurance

UK A permanent record on the Blockchain of valuable assets to reduce insurance fraud Hard facts: Financial Services = >50% of Blockchain use- Blockchain & FinTechs cases currently

Hong Kong Know Your Customer Use Case Blockchain-based self-sovereign identity protocol !Customer is in of his identity

Singapore Kenya Crypto-debit cards Cross-boarder business payments Cross-boarder payments „Bring to Africa“

Switzerland Crypto Wealth Management Customized management of crypto-asset portfolio Blockchain & Academic Certificates

Immutable records – Digital fingerprints (hashes) of the individual certificates issued are placed permanently in a blockchain transaction

Ease and instant authentication by interested parties even if the application used or the institution‘s website no longer exists

University of Nicosia (Blockchain Initiative) Frankfurt School of Finance Blockchain & Media

A social media platform, where users are rewarded for posting interesting content

Basic Attention Token (BAT) Blockchain-based digital advertising Current problem: up to 50% of the average user‘s mobile data is for ads Users are rewarded with BATs for their attention & advertisers achieve better targeting without third parties Use Case: Supply Chain Transparency

Tuna Blockchain Project WWF New Zealand, WWF Australia, WWF Fiji & Consensys

Illegal, unreported & unregulated fishing Possibility for tracking fish, Slave labor Blockchain Buying fish only from sustainable companies with no abusement of human rights

Origintrail „First purpose-build protocol for supply chains based on Blockchain“

Various use cases within food industry & logistics Use Case: Traceability of Donations

Aidcoin

43% of people do not trust in Real-time tracking of funds traditional charity any more Blockchain Releasing funds where needed without sophisticated banking infrastructure

Initiative „Building Blocks“

Quickly, safely aid (food & cash) delivery to the needy Successfully tested in Pakistan Use Case: Land registry on Blockchain

CHANCES

- Vulnerability in developing countries - A large number of intermediaries (brokers, government property databases, etc.) - No single, centralized depository  more resilient recors (ex. Haiti 2010 earthquake) - Immutable records

BUT: PREREQUISITES

1. Identity solutions (ex. SecureKey in Canada, uPort, Civic etc.) 2. Digitized records (you cannot hash a paper document) 3. Multiple signature wallets (what if you lost your pair of keys?) 4. Type of Blockchain (issue: storing a large amount of data) 5. Accurate data 6. Connectivity & a tech-aware population 7. A trained professional community Use Case: Public Integrity

Iniciativa BlockchainHACKMS Mexico Blockchain-based application for public contracting

Corruption adds up to 25% of the costs of contracts in Immutable trail of transactions Blockchain developing countries No central authority needed Smart Dubai Dubai Blockchain-based application for public services Use case: Inclusion of Undocumented & Underbanked

Hyperledger Indy (Linux Foundation) Tools, libraries, and reusable components for creating and using independent digital identities rooted on blockchains or other distributed ledgers so that they are interoperable across administrative domains, applications

Blockchain-based cash transfers for refugees in Jordan

Estimated 2 billion people worldwide are unable Self sovereign identity solutions to prove their identity Blockchain Immutable information (no document - No national & international mobility falsification), confirmations & proofs of - No access to banks & loans identity from the first time the identity was - No inclusion in economic activities ever recorded Use Case: Incentivizing energy consumption reduction

Energi Mine

electric vehicle and other Energy-efficient product owners are rewarded with ETK tokens

ETK tokens can be used to: ex. settle energy bills; buy some services from partners

Energo Solar P2P platform for a distributed Alternative digital currency that works like air- energy system, focus on microgrids miles for solar electricity generation Learning Resources White Paper: „Bitcoin: A Peer-to-Peer Electronic Cash System“

White Paper: „Ethereum: A Secure Decentralized Generalized Transaction Ledger“

Credit Suisse Report „Blockchain – a Trust Disrupter“

Mougayar „The Business Blockchain“

Solidity language (for Smart Contracts): https://solidity.readthedocs.io/en/v0.4.24/

Oraclize Dev Center: https://dev.oraclize.it/

Tapscott & Tapscott „Blockchain Revolution: How the Technology Behind Bitcoin is Changing Money, Business and World“

Visualisation of live Bitcoin transactions: https://bitbonkers.com/

Szabo (1994): Smart Contracts

Lamport, Shostak, Pease (1982): The Byzantine Generals Problem Please feel free to reach out

[email protected]

Evgenia Filippova

http://wu.ac.at/cryptoeconomics