The power of Blockchain: Smart Contracts. Foteini Baldimtsi

Similar documents
ENEE 457: E-Cash and Bitcoin

Privacy based Public Key Infrastructure (PKI) using Smart Contract in Blockchain Technology

Blockchain for Enterprise: A Security & Privacy Perspective through Hyperledger/fabric

SMARTDATA: Leveraging Blockchain to Securely Capture & Verify Scientific Provenance Data

Blockchain, cryptography, and consensus

Using Chains for what They re Good For

Hawk: The Blockchain Model of Cryptography and Privacy-Preserving Smart Contracts. Yashar Dehkan Asl

Lecture 3. Introduction to Cryptocurrencies

Blockchain! What consultants should know about it. Daniel

Blockchain, Cryptocurrency, Smart Contracts and Initial Coin Offerings: A Technical Perspective

An Analysis of Atomic Swaps on and between Ethereum Blockchains Research Project I

Scriptless Scripts. Scriptless Scripts. Andrew Poelstra. March 4, 2017

Key concepts of blockchain

Leveraging Smart Contracts for Automatic SLA Compensation The Case of NFV Environments

Blockchains & Cryptocurrencies

Bitcoin, a decentralized and trustless protocol

Abstraction: Distributed Ledger

Public Key Infrastructures

Ergo platform: from prototypes to a survivable cryptocurrency

Blockchain without Bitcoin. Muralidhar Gopinath October 19, 2017 University at Albany

BaFin-Tech 2018 BlockChain & Security (from #developerview)

CS 4770: Cryptography. CS 6750: Cryptography and Communication Security. Alina Oprea Associate Professor, CCIS Northeastern University

Public Chain for Digital Asset Escrow

Smalltalk 3/30/15. The Mathematics of Bitcoin Brian Heinold

Distributed Ledger Technology & Fintech Applications. Hart Montgomery, NFIC 2017

GENESIS VISION NETWORK

Computer Security. 14. Blockchain & Bitcoin. Paul Krzyzanowski. Rutgers University. Spring 2019

Chapter 13. Digital Cash. Information Security/System Security p. 570/626

Lecture 10. A2 - will post tonight - due in two weeks

Blockchain & Distributed Internet Infrastructure

Blockchain (de)constructed

Table of contents. Technical Features. Our approach. Technical Overview. Stage 1 (Using Ethereum blockchain) Participants. Data Owner.

The Blockchain. Josh Vorick

Bitcoin and Blockchain

Technical Analysis of Established Blockchain Systems

Ethereum. Campbell R. Harvey* Duke University and NBER. Ashwin Ramachandran Duke University. Brent Xu ConsenSys. Innovation and Cryptoventures

SilentWhispers: Enforcing Security and Privacy in Decentralized Credit Networks

A Scalable Smart Contracts Platform

SOLUTION ARCHITECTURE AND TECHNICAL OVERVIEW. Decentralized platform for coordination and administration of healthcare and benefits

Security, Privacy and Interoperability in Payment- Channel Networks

Cryptography and Cryptocurrencies. Intro to Cryptography and Cryptocurrencies

Candidates Day Modeling the Energy Consumption of. Ryan Cole Liang Cheng. CSE Department Lehigh University

ISSUSE AND FEATURES TO CONSIDER WHEN SELECTING A BLOCKCHAIN SYSTEM. Find us at

The game If you listen very carefully during the first 4 cards (or use the cheat sheet) you will get an advantage on the last 5 cards

Overview of PBI-blockchain cooperation technology

Using Blockchain for Consent and Access to Private and Sensitive Data in the GDPR Environment

BBc-1 : Beyond Blockchain One - An Architecture for Promise-Fixation Device in the Air -

Not ACID, not BASE, but SALT A Transaction Processing Perspective on Blockchains

Set: Hub-and-Spoke Cryptographic Payment Channels

A SYSTEM FOR ENABLING SHORT-TERM FINANCING

Biomedical and Healthcare Applications for Blockchain. Tiffany J. Callahan Computational Bioscience Program Hunter/Kahn Labs

Introduction to Cryptography in Blockchain Technology. December 23, 2018

Ergo platform. Dmitry Meshkov

CISC859: Topics in Advanced Networks & Distributed Computing: Network & Distributed System Security. A Brief Overview of Security & Privacy Issues

The security and insecurity of blockchains and smart contracts

Securing Bitcoin wallets: A new DSA threshold signature scheme that is usable in the real world

Problem: Equivocation!

QUADCORECHAIN. White Paper ver.1

Privacy- Preserving Smart Contracts

SpaceMint Overcoming Bitcoin s waste of energy

Why is blockchain exciting? Data Sharing.

Ergo platform overview

NEO White Paper. NEO design goals: Smart Economy. Digital Assets. Digital Identity. A distributed network for the Smart Economy

BITCOIN PROTOCOL & CONSENSUS: A HIGH LEVEL OVERVIEW

Brown University. Yana Hrytsenko. Final Project: Blockchain for PKI: Using Blockchain data structure for Public Key. Infrastructure.

Lecture 44 Blockchain Security I (Overview)

Page Total

Prelude. The notes within this Whitepaper publication are intended to formally document the concepts and features of the Aegeus cryptocurrency.

Who wants to be a millionaire? A class in creating your own cryptocurrency

Incentivized Delivery Network of IoT Software Updates Based on Proofs-of-Distribution

BLOCKCHAIN The foundation behind Bitcoin

BLOCKCHAIN Blockchains and Transactions Part II A Deeper Dive

IOTA Decentralized and Public Platform. Ledger of Things/Economy of Things

OpenbankIT: a banking platform for e- money management based on blockchain technology

Security: Focus of Control

Zero-Knowledge proof of knowledge transfer. Perm summer school on blockchain 2018

Alternatives to Blockchains. Sarah Meiklejohn (University College London)

EECS 498 Introduction to Distributed Systems

Whitepaper Rcoin Global

BLOCKCHAIN CADEC Pär Wenåker & Peter Larsson

Lecture 9. Anonymity in Cryptocurrencies

The Technology behind Smart Contracts

Privacy Enhancing Technologies CSE 701 Fall 2017

Lecture Notes 14 : Public-Key Infrastructure

Town Crier. Authenticated Data Feeds For Smart Contracts. CS5437 Lecture by Kyle Croman and Fan Zhang Mar 18, 2016

ICS 421 & ICS 690. Bitcoin & Blockchain. Assoc. Prof. Lipyeow Lim Information & Computer Sciences Department University of Hawai`i at Mānoa

CS 4770: Cryptography. CS 6750: Cryptography and Communication Security. Alina Oprea Associate Professor, CCIS Northeastern University

What is Bitcoin? Consensus technology has the power to do for economics what the internet did for information - Dan Larimer

Security Analysis of Bitcoin. Dibyojyoti Mukherjee Jaswant Katragadda Yashwant Gazula

DISTRIBUTED RESOURCE SHARING USING THE BLOCKCHAIN TECHNOLOGY ETHEREUM. A Project. California State University, Sacramento

A Blockchain-based Mapping System

PERFECT MIX FOR PERFECT DATA PROTECTION

Viacoin Whitepaper. Viacoin Dev Team September 12, Abstract

CS 251: Bitcoin and Cryptocurrencies Fall 2016

Cryptocurrencies for Investigators

As a 3rd generation currency, not only are transactions secured, private and fast, you actually get paid for holding DigitalPrice coins.

Discreet Log Contracts

I. Introduction. II. Security, Coinage and Attacks

Valence Blockchain Applications v1.0

Blockchain. CS 240: Computing Systems and Concurrency Lecture 20. Marco Canini

Transcription:

The power of Blockchain: Smart Contracts Foteini Baldimtsi

The Blockchain at the heart of a cryptocurrency Alice sends 2 John sends 1 Dave sends 5 to Bob to Eve to Alice Bob sends 1 Eve sends 4 to Dave to Bob

The Blockchain at the heart of a cryptocurrency Alice sends 2 John sends 1 Dave sends 5 to Bob to Eve to Alice Bob sends 1 Eve sends 4 to Dave to Bob

Abstracting the notion of Blockchain Alice sends 2 John sends 1 Dave sends 5 Bob sends 1 Eve sends 4 to Bob to Eve to Alice to Dave to Bob Immutable data collection Data added in an append-only manner Nobody can modify an old transaction Controlled in a decentralized manner by multiple parties running a consensus protocol Byzantine agreement Proof-of-work Proof-of-space

Where is Blockchain used? Cryptocurrencies

Where is Blockchain used? Cryptocurrencies

Why is Blockchain useful? 1. As a distributed, tamper-proof, data structure - No central trusted authority exists - Participating parties do not trust each other 2. As a mechanism for execution of smart contracts - Enforce the negotiation or performance of a contract - Allows for fair-exchange (blockchain is the mediator) - No direct interaction between parties

Smart Contracts Introduced by Nick Szabo in 1994 Help you exchange money, property, shares, or anything of value in a transparent, conflict-free way while avoiding the services of a middleman

Smart Contract for Fair Exchange

Smart Contract for Fair Exchange

Smart Contract for Fair Exchange Impossible without the use of a trusted third party! Needs to be an atomic operation!

Smart Contract for Fair Exchange

Smart Contract for Fair Exchange

Smart Contract for Fair Exchange

Smart Contract for Fair Exchange 1. Pick a secret key K 2. Encrypt document into Enc K

Smart Contract for Fair Exchange Enc K 1. Pick a secret key K 2. Encrypt document into Enc K

Smart Contract for Fair Exchange Enc K C, 1. Pick a secret key K 2. Encrypt document into Enc K 1. Prepare contract C = 1 for the secret key K

Smart Contract for Fair Exchange Enc K C, K 1. Pick a secret key K 2. Encrypt document into Enc K 1. Prepare contract C = 1 for the secret key K

Smart Contract for Fair Exchange Enc K K Execute contract C, 1. Pick a secret key K 2. Encrypt document into Enc K 1. Prepare contract C = 1 for the secret key K

Smart Contract for Fair Exchange Enc K C, K 1. Pick a secret key K 2. Encrypt document into Enc K 1. Prepare contract C = 1 for the secret key K Q: How can the buyer know that the seller has encrypted the correct document?

Q: How can the buyer know that the seller has encrypted the correct document? A: Break D = D 1...D n, encrypt and post all shares and reveal some random ones before selling. Smart Contract for Fair Exchange Enc K C, K 1. Pick a secret key K 2. Encrypt document into Enc K 1. Prepare contract C = 1 for the secret key K

Smart Contract for Fair Exchange Enc K C, K 1. Pick a secret key K 2. Encrypt document into Enc K 1. Prepare contract C = 1 for the secret key K Q: What if the seller never reveals K? What happens to the buyers coin?

Smart Contract for Fair Exchange Enc K C, K 1. Pick a secret key K 2. Encrypt document into Enc K 1. Prepare contract C = 1 for the secret key K for tw=10 hours Q: What if the seller never reveals K? What happens to the buyers coin? A: Timelocked transactions: funds are returned after a specific time window.

Bitcoin Smart Contracts C = 1 for the secret key K for tw=10 hours Such a contract cannot be implemented in Bitcoin! Bitcoin has been designed to only check two conditions: - Verification of an ECDSA signature (under specific parameters) - Preimage of a hash function output Post: Enc K, Hash(K) and ZK proof that the hashed key is the correct one After verifying the proof, post C = 1 for the preimage of Hash(K) for tw=10 hours

Ethereum smart contracts Provides a Turing-complete scripting language: supports a broader set of computational instructions. Contracts can use data outside of the blockchain (i.e. weather, stock prices etc) We can build chains of contracts (the 2nd settles on information from the output of the 1st contract) Smart contracts run on the Ethereum Virtual Machine (works at a level too low to be convenient to directly program). Solidity is the most popular language for writing contracts (JavaScript-like)

Smart contracts interacting with each other https://blockgeeks.com/guides/smart-contracts/

Ethereum smart contracts need gas to run There is a need for efficient smart contract protocols! https://hackernoon.com/ether-purchase-power-df40a38c5a2f

A note on privacy The blockchain is public and all posted data: - Code of the contract - PKs of the participants - Data send to the contract - Payments (amounts and PKs) - Generic smart contract anonymity compilers for ethereum [Hawk] - Specialized tools for Bitcoin contracts anonymity [Tumblebit]

Advantages of smart contracts Applications: Government: e-voting, e-ids (decentralized PKIs), Auctions, Real estate, Healthcare, Supply chain Autonomy: no need for trusted third party Trust: data stored in a shared ledger (cannot be lost) Backup: data duplication Speed: automating various processes

thank you! foteini@gmu.edu