smart contracts (qtum) by alex norta, phd

34
Alex Norta, PhD., Department of Informatics, TTU.ee Tallinn, Estonia What can Smart Contracts Do?

Upload: qtum

Post on 19-Mar-2017

671 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Smart Contracts (Qtum) by Alex Norta, PhD

Alex Norta, PhD.,

Department of

Informatics, TTU.ee

Tallinn, Estonia

What can Smart Contracts Do?

Page 2: Smart Contracts (Qtum) by Alex Norta, PhD

Agenda Introduction & DIY Blockchain/Bitcoin learning Current state in smart contracts/blockchain-tech

– Unsuitable smart-contract languages -> ADOPTION FAILURE– Lifecycle management lacking for smart contracts -> INSECURE

Business-collaboration model– Master/client- vs. P2P-collaboration– Detailed collaboration model

eSourcing Markup Language (eSML) Complete lifecycle for smart-contract management

– Setup– Rollout of decentralized governance infrastructure– Disrupting and calming rollbacks for conflict management– Termination

Startups and projects around Smart Contracts Conclusion and future work

Page 3: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction My own journey towards Smart Contracts

– an accident

Page 4: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction What is a contract? A contract is a written, or spoken agreement

especially one concerning employment, sales, or tenancy that is intended to be enforceable by law.– voluntarism– non-initiation of force– consensus

Page 5: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction

What a contract really currently is? Dumb paper and ink (or now a dumb PDF) Underspecified Not process aware Can not be automated Hard to enforce Hard to trust

Page 6: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction What are blockchains all about? Blockchain

– a distributed database (hash table)– maintains a growing list of data records– secured from tempering and revision– Main technical innovation for bitcoins

Page 7: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction

http://www.en.bitcoinr.cz/includes/img/bitcoin.pdf

Page 8: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction

Page 9: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction Bitcoin as teaser only!! -> Smart Contracts

Bitcoins vs. Blockchains Bitcoin’s protocol layer underdeveloped Smart-contract languages have Turing

complete languages on the protocol layer The latter realize smart contracts technically

Page 10: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction Smart Contracts

– machine readable code– legally valid

Page 11: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction My own Smart-Contracts publications

Page 12: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction Many solutions emerge where smart contracts matter:

Digital anarchy is comingLaw/business changes with smart contractsProofOfExistence service replaces notariesBlockchain ID as new stateless passportsUltraCoins to eliminate old financial systemBitHalo for smart contractsEthereum for smart contracts and next-generation distributed Internet systemsVitali Buterin won awards

Forefront of digital currency Bitnation for DIY country in clouds

Page 13: Smart Contracts (Qtum) by Alex Norta, PhD

Introduction Many sociotechnical applications where

smart contracts matter– e.g., cyber-physical systems

Cyber-Physicalsystem

A. Norta, M. Mahunnah, T. Tenso, K. Taveter and N. C. Narendra, "An Agent-Oriented Method for Designing Large Socio-technical Service-Ecosystems," 2014 IEEE World Congress on Services, Anchorage, AK, 2014, pp. 242-249. doi: 10.1109/SERVICES.2014.50

Blockain case

Page 14: Smart Contracts (Qtum) by Alex Norta, PhD

DIY Learning

Open-source learning about Blockchains:– Satoshi Nakamoto's paper about Bitcoins/blockchain– More papers at the Satoshi Nakamoto Institute– Many blockchain-tech publications now on scholar.google.com– Lectures:

• Harvard free Bitcoin and Cryptocurrency Technology Online Course• Princeton Bitcoin and Cryptocurrency lecture• Khan Academy has many videos about bitcoins• University of Nicosia Master Studies about Bitcoins/Blockchain

– Books:• Mastering Bitcoin by Antonopoulos, A.M.• Bitcoin and Cryptocurrency Technology, Narayanan, A. et al• More on Amazon

Page 15: Smart Contracts (Qtum) by Alex Norta, PhD

Sociotechnical Collaboration

BPaaS Contracting-HUB

Page 16: Smart Contracts (Qtum) by Alex Norta, PhD

Gap Detection

Gap: Existing smart-contract languages do not take into account sociotechnical suitability and expressiveness.– Lack of interaction-recognition between acting humans in organizations with

technology in workplaces– Suitability: concepts/properties to formulate real-world business-collaborations– Expressiveness: semantic language-construct clarity for uniform enactment

Research question: How to systematically develop a language and governance platform for cross-sociotechnical and contract-based system collaboration?– What is the collaboration context and model the specification language must cater

for? – What are the main suitability- and expressiveness concepts and -properties?

Page 17: Smart Contracts (Qtum) by Alex Norta, PhD

Business-Collaboration Model

Page 18: Smart Contracts (Qtum) by Alex Norta, PhD

P2P-Collaboration Model

Page 19: Smart Contracts (Qtum) by Alex Norta, PhD

Suitability Exploration Pattern-based

http://www.worldscientific.com/doi/abs/10.1142/S0218843007001664

Page 20: Smart Contracts (Qtum) by Alex Norta, PhD

Smart-contract ontology Smart-contract based Collaboration concepts & properties

Page 21: Smart Contracts (Qtum) by Alex Norta, PhD

Suitability Exploration Smart-contract based collaboration

– Who-concept

Page 22: Smart Contracts (Qtum) by Alex Norta, PhD

Suitability Exploration eContract-based collaboration

– Where-concept

Page 23: Smart Contracts (Qtum) by Alex Norta, PhD

Suitability Exploration eContract-based collaboration

– What-concept

Page 24: Smart Contracts (Qtum) by Alex Norta, PhD

Expressiveness Exploration

eXchangable Routing Language (XRL)– Instance-based workflow language– Petri-net semantics and XML syntax– Control-flow patterns give strong expressiveness

Every routing element has WF-net (Petri-net variant) semantics– Allows for soundness verification with tool support

Syntax is a tree– root element with exactly one routing element– Simple routing: no children routing elements– Complex routing: child-routing elements of specific order

Page 25: Smart Contracts (Qtum) by Alex Norta, PhD

eSourcing Markup Language

Econtracting Markup Language ECML is foundation

ECML delta towards eSouring – Incomplete suitability/expressiveness

Bold eSML definitions are extensions– Resource definition– Data definition

Who-extensions– resource/data-definition

What-extensions– Control-flow-patterns

Lifecycle definitions – Tasks/processes of collaborating parties– Mapped ontologically

Page 26: Smart Contracts (Qtum) by Alex Norta, PhD

Smart-Contract Platform Preventing another DAO hack scandal Lifecycle of a smart-contract Governance-as-a-Service

(GaaS) platform:– Startup phase: paper– Rollout & enactment phase: paper– Rollback & termination: paper

We use Colored Petri Nets for designing the GaaS– CPN is a graphical oriented language – design, specification, simulation and verification of systems– CPN-notation comprises

• states, denoted as circles• transitions, denoted as rectangles• arcs that connect states and transitions• tokens with color, i.e., attributes with values• CPN-ML expressions inscripted on arcs• modules in CPN are non-atomic place-holder nodes for

hierarchic refinements

Page 27: Smart Contracts (Qtum) by Alex Norta, PhD

Startup Phase: top-level lifecycle

Page 28: Smart Contracts (Qtum) by Alex Norta, PhD

Rollout Phase

Establishing a decentralized governanceinfrastructure(DGI)

Page 29: Smart Contracts (Qtum) by Alex Norta, PhD

Rollback Phase

http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6337270&tag=1

Page 30: Smart Contracts (Qtum) by Alex Norta, PhD

Rollback & Termination

Page 31: Smart Contracts (Qtum) by Alex Norta, PhD

New enabling concepts and technologies for Smart Contracts– Blockchains in many variations and flavors – Service-oriented cloud computing (SOCC)– Business Process as a Service (BPaaS)– Cross-organizational eSourcing framework– Big data, mobile devices

eSourcing Reference Architecture

Page 32: Smart Contracts (Qtum) by Alex Norta, PhD

eSourcing Reference Architecture

Page 33: Smart Contracts (Qtum) by Alex Norta, PhD

Conclusion

Smart contracts miss the application layer -> INSECURE– Primarily technicalities driven bottom-up realization, e.g., Ethereum, Lisk, Synereo

eSML for smart contracts evolves out of systematic research– Top-down sociotechnical suitability/expressiveness exploration

Real-life contracting foundation for eSML– Process-views are subsets of larger in-house processes

The GaaS in a Cloud serves for managing the smart-contract lifecycle– Establishing a decentralized governance infrastructure

– We choose CPN Tools with formal, graphical modeling semantics Stages of the DGI-establishment lifecycle

– Copy local smart-contract copies per decentralized autonomous organization– Extract local policies, monitors, BNMA– Configure local services & communication endpoints

Mapping of lifecycle to eSRA architecture Qtum Smart-Contracts theme in Tallinn

Page 34: Smart Contracts (Qtum) by Alex Norta, PhD

Thank you for listening!

Q&A