Instrumenting Accountability in MAS with Blockchain

Similar documents
Table of contents. 2

Blockchain made Simple

Alexandros Fragkiadakis, FORTH-ICS, Greece

Blockchain: from electronic cash to redefining trust

L3. Blockchains and Cryptocurrencies

Introduction to Blockchain Technology

Blockchain and Internet of Things: Why a Perfect Match. Fabio Antonelli - Head of FBK - CREATE-NET Research Center

White Paper. Bizanc Blockchain

Blockchain Technology: Concepts. Whitepaper 1

Blockchain & Smart Contracts. Project Management tools in the 21 st Century

INTRODUCTION TO THE BLOCKCHAIN ERRIN ICT Working Group Meeting on Blockchain June 13, Javier Prieto IoT Digital Innovation Hub

EVERYTHING YOU NEED TO KNOW ABOUT DIGITAL LEDGER TECHNOLOGY, THE BLOCKCHAIN AND CRYPTOCURRENCIESÓ (Part I June 2018)

Private Wealth Management. Understanding Blockchain as a Potential Disruptor

Accounting for crypto assets mining and validation issues

Blockchain 2.0: Smart Contracts

Bitcoin. CS 161: Computer Security Prof. Raluca Ada Poipa. April 24, 2018

Bitcoin. CS 161: Computer Security Prof. Raluca Ada Popa. April 11, 2019

Cisco Live /11/2016

Digital Transformation A Focus on Blockchain

Copyright Scottsdale Institute All Rights Reserved.

PROPOSED INTER- AGENCY AGREEMENT (IAA) PILOT

Blockchain-based Traceability in Agri-Food Supply Chain Management: A practical Implementation

Blockchain and Risk ISACA Northern UK, April 20 th, Mike Small CEng, FBCS, CITP Senior Analyst Kuppinger Cole

THE BLOCKCHAIN DISRUPTION. INSIGHT REPORT on Blockchain prepared by The Burnie Group

primechain building blockchains for a better world

$110100$010. Crypto Currencies. Good or Evil? 10$ $100010

Blockchains and the future of finance

Healthcare, Blockchain and Smart Contracts: Emerging Issues for Healthcare Counsel

CONTENTS DISCLAIMER... 3 EXECUTIVE SUMMARY... 4 INTRO... 4 ICECHAIN... 5 ICE CHAIN TECH... 5 ICE CHAIN POSITIONING... 6 SHARDING... 7 SCALABILITY...

Blockchain & The Hollywood Supply Chain

Blockchain and Smart Contracts: Relevance of Security Facts and Myths to Industrial Control

BLOCKCHAINS MINING NUMBERS NOT GOLD

What Blockchain Means For Your Organization s Insurance Program

CSCI 1800 Cybersecurity and International Relations. Bitcoins and Blockchains John E. Savage

Harnessing Commodity Markets Commodities and Blockchain - Distributed Ledger Technology

Introduction to Blockchain Rick McMullin, bitheads, inc.

Blockchain: The New Line of Defense

whitepaper Abstract Introduction Features Special Functionality Roles in DiQi network Application / Use cases Conclusion

Blockchain Technology for Next Generation ICT

BLOCKCHAIN: SOCIAL INNOVATION IN FINANCE & ACCOUNTING

THE SOFEROX PROJECT THE TWIN-CHAIN BLOCKCHAIN

New Kids on the Blockchain: RIM Blockchain Applications Today & Tomorrow

Mobilizing Blockchain Technology for the Automotive Industry Duncan Westland Ernst & Young. #EY_Automotive

LinkedIn /in/petkanic/

/// BLOCKCHAIN TECHNOLOGY THAT S READY TO ROLL

Blockchain Developer TERM 1: FUNDAMENTALS. Blockchain Fundamentals. Project 1: Create Your Identity on Bitcoin Core. Become a blockchain developer

Blockchain Overview. Amr Eid Cloud Architect, Cloud Platform, MEA

Changing Data Protection: Heading towards a Blockchain-Operated Future

Computer Security. 13. Blockchain & Bitcoin. Paul Krzyzanowski. Rutgers University. Spring 2018

Blockchain & Bitcoin. Länsstyrelserna David Bauman

THE FUTURE OF BLOCKCHAIN WITH IOT. Ama Asare

SMART CONTRACTS in Insurance

A.J. Bahou, LLM, MSECE Bahou Miller PLLC

BLOCKCHAIN IN PRACTICE

BitShares is. a decentralized network. All About BitShares in Infographics

The BitShares Blockchain

BLOCKCHAIN: AN OVERVIEW

Blockchain Demystified for Business Intelligence Professionals

Building Blockchain Solutions

Understanding Blockchain & its implications for financial professionals

BLOCKCHAIN EVOLUTION. The shifting perception of blockchain and the potential impact on businesses, governments and the investment landscape.

Blockchain and the Maritime Industry

Let s Learn Blockchain Blockchain 101. April 11, 2018

Mining Market Overview

Investing in the Blockchain Ecosystem

LEADING THE WAY GLOBAL SPECIALIST RISK ADVISER & BROKER JLT SOUTH AFRICA #SAAFF2018

A Comprehensive Reference Model for Blockchain-based Distributed Ledger Technology

Blockchain. Deepak Agarwal ICMA Conference Presenter

The Blockchain Trevor Hyde

The Blockchain Technology

Quality Assurance in Blockchain

BLOCKCHAIN: INCREASING TRANSPARENCY IN MEDIA & ADVERTISING. Jessica B. Lee, Partner, Advanced Media and Technology

Blockchain Technology and Automotive Industries. John Wagster Co-Chair, Blockchain and Cryptocurrency Practice

Blockchain - Technologies for the Automotive Industry

Blockchain: An introduction and use-cases June 12 th, 2018

The Blockchain: What It is & Why It Matters to Us

Blockchain Technology in Banking and Financial Services

TECHNICAL WHITEPAPER. Your Commercial Real Estate Business on the Blockchain. realestatedoc.io

Metro: A peer-to-peer cross-chain digital asset exchange

I TECHNOLOGY Blockchain Concepts Blockchain 20

Cryptocurrency and Blockchain Technology

Blockchains. How crypto-currencies work. Luke Anderson. 19th May University Of Sydney.

arxiv: v1 [q-fin.gn] 6 Dec 2016

THE MOST INNOVATIVE AND LUCRATIVE WAY TO EARN BITCOIN.

Digital Evolution and overcoming business ethical dilemmas

Hive Project Whitepaper

an introduction to Blockchain Technology

chainfrog WHAT ARE SMART CONTRACTS?

IEW. OINT OF NOTHER ROM BLOCKCHAIN 101 // EXECUTIVE DECK. Marcelo T. de Alvear 405 Oficina # 9 Ciudad de Buenos Aires Argentina

Blockchain and the possible impact on testing. New technology needs new testing?

BLOCKCHAIN: IN SEARCH OF A BUSINESS CASE

Version 1.0. The Blockchain An architectural view

Committee on WIPO Standards (CWS)

AlloyCoin: A Crypto-Currency with a Guaranteed Minimum Value

Blockchain for financials

Blockchain Bitcoin Ethereum Blockchain Beginners Guide To Understanding The Technology Behind Bitcoin Cryptocurrency The Future Of Money Box Set

BITCOIN. sdffdfdfd. Fundamental Asset Overview

Banking: operation transformation. 15 June 2016

Block chain Technology:Concept of Digital Economics

blockchain bitcoin cryptography currency Blockchain: The Next Big Digital Disruptor for CFOs cryptocurrency exchange transaction financial market

Transcription:

Instrumenting Accountability in MAS with Blockchain Fernando Gomes Papi [UFSC] Jomi Fred Hübner [UFSC] Maiquel de Brito [IFRS] [UFSC] Federal University of Santa Catarina - Brazil [IFRS] Federal Institute of Education, Science and Technology - Brazil October, 2017

Summary 1. Introduction 2. Formulation of Hypothesis 3. The Blockchain 4. Smart Contracts 5. Proposed Models 6. Example Implementation 7. Results and Drawbacks 8. Bibliography

Introduction We are entering the era of computation as interaction Bots answer millions of human inquiries Bots help us write Wikipedia Bots trade stocks Bots drive humans around Multi Agent Systems deal with decentralized autonomous computational entities Design of agents Design of their environment Design of their goals Design of a global goal Design of their learning, coordination and planning Design of their regulation

Introduction Accountability is the acknowledgment and assumption of responsibility for decisions and actions that an individual, or an organization, has towards another party. [6] Agents should be responsible for their actions and commitments. Agents are responsible for agreements they put themselves through. How can we provide agents reliable tools so that they can be accountable for their actions? Blockchains can offer agents the possibility of trustless exchange, data that is consistent and timestamped and complete transparency and immutability.

Hypothesis Blockchain can be a powerful provider of tools for MAS accountability

MAS Blockchain? - Model and Simulate Complex Systems - Exchange Information - Solve Distributed Problems with Global Goals - Simplify Decentralized Computing Examples: - Supply Chain Management - Transaction of Medical Records - Economic Modeling and Planning

The Blockchain The technology behind the Bitcoin - Satoshi Nakamoto, 2009 [1] In the context of the Bitcoin: A distributed ledger of every single transaction of bitcoins, verified by cryptographic functions (Hash Pointers of blocks of transactions) In a general context: A distributed database of any kind of computational effort, verified by cryptographic functions (Hash Pointers of blocks of generic data)

A Bitcoin Transaction[2]

Blockchain Data Structure Prev_Hash Block 10 Timestamp Prev_Hash Block 11 Timestamp Prev_Hash Block 12 Timestamp Tx_Root Nonce Tx_Root Nonce Tx_Root Nonce Hash01 Hash23 Hash0 Hash1 Hash2 Hash3 Blockchain Tx0 Tx1 Tx2 Tx3 Merkle Tree

Why are blockchains fraud-proof? Prev_Hash Block 10 Timestamp Prev_Hash Block 11 Timestamp Prev_Hash Block 12 Timestamp Tx_Root Nonce Tx_Root Nonce Tx_Root Nonce Modifying a transaction in Block 10 will mean changing the Hash of Block 10 If the Hash of Block 10 changes, so will the Hash of Block 11 If the hash of Block 11 changes, so will the Hash of Block 12 and so on... To propagate a fraud in a Block, the attacker needs control of 51% of the network This means an unfeasible amount of computing power Blockchains are considered statistically fraud-proof A Transaction is normally considered safe after 6 new Blocks have been appended

From Transactions to Contracts Miners have to solve hard puzzles to verify transactions and include blocks in the blockchain to receive a reward (in bitcoin) Dedicated GPU s waste huge amounts of power to solve the puzzle. Brute force search is the only method. Puzzle: Finding a number (nonce) that has a Hash with some predefined property (example: starts with five zeros) Instead of wasting energy, nodes could use the energy to make useful computation of predetermined functions

Smart Contracts Whenever two parts agree on a contract, it can be signed and executed through a blockchain Ethereum provides a platform for Smart Contracts [3] Smart Contracts are: Automatically Executed Code Reliable, Everlasting, Decentralized Immutable Cryptographically Secure Easily verifiable from outside agents

The Blockchain - Key Takeaways Interactions on a Blockchain are fraud-proof The Ethereum Blockchain provides a programming language for deploying Smart Contracts Smart Contracts are pieces of code that will auto-execute when conditions are met Refine the Hypothesis: Artifacts of the MAS could be powered by a Blockchain, providing secure, fraud-proof operations for agents

Blockchain as a means of communication msg_a msg_c msg_b Blockchain used as a logger of messages between agents Provides a safe register of all messages exchange: traceability of commitments No agent will be able to state that it didn t send (or receive) a determined message However: Traceability does not guarantee accountability [4] Sub-utilizes the capabilities of a blockchain

Blockchain as a generic Environment Environment $ Artifacts Info Info $ All Artifacts of the Environment are implemented in the Blockchain Agents have direct access to Artifacts and other agents through the network Easier to implement, simpler conceptual model Unrealistic computational effort: Every interaction between agents would be registered in the Blockchain

Blockchain as an Artifact in the Environment Environment Artifacts Act Perceive Info $ Blockchain Artifact Act Perceive A node of Blockchain executing behind one Artifact Agents can interact with it by reading and writing data to it Only common transactions are available Suitable for simple applications and handling of assets transactions among agents (for example, payments) No added complexity, but limited usage

Blockchain instrumenting application Artifacts Environment Blockchain Artifacts $ Info Info $ Each Artifact interfaces a desirable Smart Contract in the Blockchain The code of the designed Artifact is executed by the network There could be Artifacts that execute locally, for simpler tasks Provides more tools for accountability Extra complexity added

Selected Model Blockchain instrumenting application Artifacts Environment Blockchain Artifacts $ Info Info $ Enough flexibility to include both on-chain and off-chain Artifacts Able to provide essential tools for accountability among agents Encapsulates all other discussed models, while remaining flexible: Artifact for message logging, Artifact for asset transactions, Artifacts for Smart Contracts executing accountability tools, etc.

Example - Building a House Scenario: Giacomo wants to build a house. He knows the tasks to be completed (Site Preparation, Walls, Floors, Roof, Windows, Doors, Plumbing, Electrical System, Exterior Painting, Interior Painting) and how much he can pay for each task. Giacomo creates Auction Artifacts for companies to bid on the task. After the auction closes, the hired company must execute the service Overview of the system: Agents: Giacomo (House Owner), Companies (Contractors that will bid on tasks) Artifacts: Auctions for each task to be contracted Organisation: coordination and cooperation in the execution of the global workflow

Original MAS Artifacts were created with the CaRTagO language, defined as: Artifacts are executed locally Artifacts last as long as the execution The system executes in a few seconds The final product is a simulation house constructed for Giacomo Observable Properties Available Operation Auction Artifact Task description Max value Current Winner Best Bid Bid

MAS + Blockchain Artifacts are coded and deployed in the Blockchain network as Smart Contracts A corresponding artifact will be created in the MAS in order to interface the interaction between agents and Smart Contracts, providing the same Observable Properties and Operations as before Smart Contracts are created and executed in a decentralized network Smart Contracts will last as long as the Blockchain exists (theoretically, forever) New instances of the MAS can use the exact same Smart Contract The system runs in several minutes

Example - Preliminary Results The Auction Smart Contract was deployed and tested with the MAS successfully The systems gets the house built for Giacomo in the simulation, and all the auction winners could be forever checked on the Blockchain The Blockchain technology poses as a great potential addition to MAS The token that runs in the Ethereum Network, the Ether, is evaluated at about US$ 300. This means that MAS can bring solutions to real life problems when using the Ethereum Blockchain

Example - Preliminary Results External User Interface Explorer for this contract: Running the Parity client -- parity.io The Testnet Kovan was used Anyone with access to the Network can check the contract The address / QR Code for this contract is available at the end of this presentation

Example - Preliminary Results Limitations and Drawbacks The Network runs quite slowly The technology is extremely new and still evolving Synchronization problems occur frequently, especially because the Network runs orders of magnitude slower than the local execution of the MAS Due to limitations of time, it still wasn t possible to demonstrate a use case of Blockchain regarding accountability issues. However, there are strong evidences that this technology can be very useful in this scenario

Example - Preliminary Results Applications of the Blockchain in Computational Accountability The Blockchain can provide trustful traceability of messages, commitments, transactions, etc. The Blockchain can automate the verification of commitments and completion of tasks With more complex Smart Contracts, it is possible to assign roles, delegate tasks, provide authorization, check for proof of membership, check available funds, etc. Smart Contracts can carry the execution of penalties according to predefined rules Smart Contracts can automate the payment and transaction of assets between agents, in both real life and simulation scenarios

Future Works Norms Make a robust and fail proof integration of Blockchain and MAS Institutional Reality Combine the Blockchain model with the Situated Artificial Institution Model [5] Environment Artifacts count-as Create a more complex application scenario: A Supply Chain simulation in MAS $ Info Info $

Bibliography [1] - Satoshi Nakamoto. Bitcoin: A peer-to-peer electronic cash system. 2008 [2] - Froystad, P; Holm, J. Blockchain: powering the internet of value. 2016 [3] - Vitalik Buterin et al. Ethereum white paper. 2013. [4] - Chopra, Amit K and Singh, Munindar P. The Thing Itself Speaks [5] - Maiquel de Brito et al. A model of institutional reality supporting the regulation in artificial institutions, 2016 [6] - Matteo Badoni, Cristina Baroglio, Katherine M. May, Roberto Micalizion, Stefano Tedeschi. Computational Accountability. 2016

Instrumenting Accountability in MAS with Blockchain Questions? Fernando Gomes Papi Jomi Fred Hübner Maiquel de Brito

Address for the example Smart Contract: 0x040185003FE21AFD615De97330Dc61C2C8707f19 Network: Kovan Tesnet Client: Parity (parity.io) Code available: github.com/ferpapi

Blockchain Integrated MAS Supply Chain Management Flow of Physical Assets Transportation Agents Flow of Information Final Consumer Supplier Manufacturer Distributor Retailer Flow of $ - Instantaneous Flow of Information - Third-party Independent Flow of $ - Distributed Consensus Blockchain Powered

SCM/MAS+Blockchain SCM has an important problem, with extensive research literature and many MAS propositions The Bullwhip Effect is the amplification of variance of orders from demand to supply Many terrible effects, such as overproduction, price fluctuations, production scheduling, creating overall economic inefficiency Hypothesis: This MAS Model can help mitigate Bullwhip Effects along the SCM

Norms Environment Institutional Reality count-as Environment Artifacts Act/Percept Info $

Environment Blockchain Norms Artifacts $ Info Info $ Institutional Reality count-as Environment Artifacts Environment $ Info Artifacts Act Perceive Blockchain Artifact Act Perceive Info $

Environment Artifacts $ Info Info $