SlideShare a Scribd company logo
Analysing Data from Blockchains
SOCCA Keynote
Prof. Dr. Ingo Weber | Nov. 2020
ingo.weber@tu-berlin.de | linkedin.com/in/ingomweber/ | Twitter: @ingomweber
Defining Blockchain
What is a blockchain?
Parable of the blind men and the elephant, see e.g., https://wildequus.org/2014/05/07/sufi-story-blind-men-elephant/ (source of figure)
What is a blockchain?
No, it’s a code
execution
platform!
It‘s a
database!
Actually, it‘s
a network!
Clearly, it’s
a BPMS!
Parable of the blind men and the elephant, see e.g., https://wildequus.org/2014/05/07/sufi-story-blind-men-elephant/ (source of figure)
Defining Blockchain (1)
• Distributed Ledger
• An “append-only” transaction store distributed across machines (immutability)
• A new transaction might reverse a previous transaction, but both remain part of the
ledger
• Blockchain
• A distributed ledger structured into a linked list of blocks
• Each block contains an ordered set of transactions
• Use cryptographic hashes to secure the link from a block to its predecessor
Defining Blockchain (2)
• A Blockchain System consists of
• A blockchain network of nodes
• A blockchain data structure
• For the ledger replicated across the blockchain network
• Full nodes hold a full replica of the ledger
• A network protocol
• Defines rights, responsibilities, and means of communication, verification,
validation, and consensus across the nodes in the blockchain network
• Includes ensuring authorisation and authentication of new transactions,
mechanisms for appending new blocks, incentive mechanisms
Defining Blockchain (3)
• A Public Blockchain is a blockchain system with the following
characteristics:
• Has an open network
• Nodes can join and leave without requiring permission from anyone
• All full nodes can verify new transactions and blocks
• Incentive mechanism to ensure the correct operation
• Valid transactions are processed and included in the ledger and invalid
transactions are rejected
• A Blockchain Platform is the technology needed to operate a
blockchain
• Blockchain client software for processing nodes
• The local data store
• Alternative clients to access the blockchain network
Decentralised Applications and Smart
Contracts
• Smart contracts
• Programs deployed as data and executed in transactions on the blockchain
• Blockchain can be a computational platform (more than a simple distributed database)
• Code is deterministic and immutable once deployed
• Can invoke other smart contracts
• Can hold and transfer digital assets
• Decentralized applications or dapps
• Main functionality is implemented through smart contracts
• Backend is executed in a decentralized environment
• Frontend can be hosted as a web site on a centralized server
• Interact with its backend through an API
• Could use decentralized data storage such as IPFS
• “State of the dapps” is a directory recorded on blockchain:
https://www.stateofthedapps.com/
Blockchain defined (1/4)
Verbatim from the Book
• Definition 1 (Distributed Ledger). A Distributed Ledger is an append-
only store of transactions which is distributed across many machines.
• Definition 2 (Blockchain (Concept)). A Blockchain is a distributed
ledger that is structured into a linked list of blocks. Each block
contains an ordered set of transactions. Typical solutions use
cryptographic hashes to secure the link from a block to its
predecessor.
Ingo Weber 9 |
Blockchain defined (2/4)
Verbatim from the Book
• Definition 3 (Blockchain System). A Blockchain System
consists of:
• a blockchain network of machines, also called nodes;
• a blockchain data structure, for the ledger that is replicated across the
blockchain network. Nodes that hold a full replica of this ledger are
referred to as full nodes;
• a network protocol that defines rights, responsibilities, and means of
communication, verification, validation, and consensus across the
nodes in the network. This includes ensuring authorization and
authentication of new transactions, mechanisms for appending new
blocks, incentive mechanisms (if needed), and similar aspects.
Ingo Weber 10 |
Blockchain defined (3/4)
Verbatim from the Book
• Definition 4 (Public Blockchain). A Public Blockchain is a
blockchain system that has the following characteristics:
• it has an open network where nodes can join and leave as they please
without requiring permission from anyone;
• all full nodes in the network can verify each new piece of data added
to the data structure, including blocks, transactions, and effects of
transactions; and
• its protocol includes an incentive mechanism that aims to ensure the
correct operation of the blockchain system including that valid
transactions are processed and included in the ledger, and that invalid
transactions are rejected.
Ingo Weber 11 |
Blockchain defined (4/4)
Verbatim from the Book
• Definition 5 (Blockchain Platform). A blockchain platform is the technology
needed to operate a blockchain. This comprises the blockchain client
software for processing nodes, the local data store for nodes, and any
alternative clients to access the blockchain network.
• Definition 6 (Smart Contract). Smart contracts are programs deployed as
data in the blockchain ledger, and executed in transactions on the
blockchain. Smart contracts can hold and transfer digital assets managed by
the blockchain, and can invoke other smart contracts stored on the
blockchain. Smart contract code is deterministic and immutable once
deployed.
• Definition 7 (dapp). A decentralized application or dapp is a software system
that is designed to provide its main functionality through smart contracts.
Ingo Weber 12 |
Book: Architecture for Blockchain
Applications
Xiwei Xu, Ingo Weber, Mark Staples.
Architecture for Blockchain Applications.
Springer, 2019. [1]
➔ Includes the definitions from the
previous slides
13
Extracting and Analysing
Blockchain Data
Ethviewer
Live visualization of the Ethereum Blockchain: http://ethviewer.live
→ “Extended” view splits TX pool by cost
15
Motivation
• Features of decentralized apps can be controlled by developers, but
control over when, where, and under what circumstances a smart
contract is executed is limited
• Analysis of blockchain operations is critical, for monitoring, planning,
improvements, adaptation, auditing, and analysis of user behavior
and failures
• Data is in principle present
given the immutable ledger
→ however, extracting it is
subject to interpretation, can
be inconvenient and slow [2]
16
Approach
ELF: Ethereum Logging Framework [3]
17
In collaboration with
Data61, CSIRO we are
developing the first
general-purpose logging
framework for Ethereum
• Highly configurable
and open-source [4]
• (Predecessor:
BlockXES [5])
• ELF’s manifest: specification of the interpretation
• Can be shared among parties
• Data output:
• In CSV, TXT, and XES formats
• Process mining can be used to understand how clients and software interact
• Also for blockchain applications and dapps
• XES format is widely supported by those tools
• Data can be extracted once or can be streamed
• Logging code generation: space-optimized storage of required data
18
Approach continued
ELF: Ethereum Logging Framework [3]
Selected ELF Use Cases
XES Logo: http://www.xes-standard.org/_detail/xes/xeslogo.png, accessed: 12/8/2019
19
Basic block statistics: CSV → Excel
Selected ELF Use Cases continued
XES Logo: http://www.xes-standard.org/_detail/xes/xeslogo.png, accessed: 12/8/2019
20
Augur contract register updates → textual log format
Selected ELF Use Cases continued
XES Logo: http://www.xes-standard.org/_detail/xes/xeslogo.png, accessed: 12/8/2019
21
CryptoKitties lifecycle process → XES, then process discovery (BPMN)
Selected ELF Use Cases continued
XES Logo: http://www.xes-standard.org/_detail/xes/xeslogo.png, accessed: 12/8/2019
22
Augur Markets → XES, then process discovery (Directly-Follows Graphs)
Credit: M. Rebesky
Cost Modelling
& Estimation
Cost Models
• The Cost of Distrust: how much more expensive is using Ethereum over
public cloud – operational cost of all components that are needed
• Use the execution of an instance of a business process model as sample application
• Cost Model of Blockchain Infrastructure (Ethereum)
• Turing complete language to implement business logic
• Cost Model of Amazon Web Services (Amazon SWF)
• Dedicated to process execution
• Implements commonly-used workflow patterns and messaging patterns
• AWS is a leading commercial cloud computing provider
24
Cost Models
• The Cost of Distrust: how much more expensive is using Ethereum over
public cloud – operational cost of all components that are needed
• Use the execution of an instance of a business process model as sample application
• Cost Model of Blockchain Infrastructure (Ethereum)
• Turing complete language to implement business logic
• Cost Model of Amazon Web Services (Amazon SWF)
• Dedicated to process execution
• Implements commonly-used workflow patterns and messaging patterns
• AWS is a leading commercial cloud computing provider
25
Sample Application: Supply Chain Process
• Supply Chain Process as BPMN Collaboration Diagram
26
Cost Models
• The Cost of Distrust: how much more expensive is using Ethereum over
public cloud – operational cost of all components that are needed
• Use the execution of an instance of a business process model as sample application
• Cost Model of Blockchain Infrastructure (Ethereum)
• Turing complete language to implement business logic
• Cost Model of Amazon Web Services (Amazon SWF)
• Dedicated to process execution
• Implements commonly-used workflow patterns and messaging patterns
• AWS is a leading commercial cloud computing provider
28
Sample Application using Ethereum
• Interaction between internal process implementation, triggers, and process
instance smart contract
• Sequence Diagram of the First Two Tasks:
Bulk Buyer BB Trigger
Smart
Contract
Manufact-
urer
Mf. Trigger
API call:
Order goods
Blockchain
Transaction
(BCTX)
Smart Contract effect
Check
conformance
API call
MiddlemanMm. Trigger
API call:
Placeorder
Execute
internal logic
BCTX
Smart Contract effect
Check
conformance
API call
29
Interface component
(1 per party)
Smart contract (1 in total)
Enterprise
applications,
people, etc.
(out of scope)
Contract Creation Cost 1/2
• Contract creation transaction
• Data compiled bytecode
Cpload = payload (in bytes) × Cgas/byte
• Permanent storage incurs cost
• Value (optional Ether transfer)
• “Endowment” upon initialization
• Ethereum address is assigned to it
• Calculated with a deterministic function depending only on the creator’s Ethereum account
• Cost for contract creation:
Ccreate = Ctx + Caddr + Cpload + Cfndef
• Ctx: 21,000 gas base cost for transaction itself
• Caddr: 32,000 gas for allocating address
• Cfndef : consumed by the opcodes in the function definition
• Cost of payload for contract bytecode is
200 gas per byte
• Cost of payload for data in a financial
transaction/message call is 68 gas per
non-zero byte and 4 per zero byte
32
Contract Creation Cost 2/2
• Contract can be created by another contract
• Cheaper Without Ctx
Ccreate’ = Caddr + Cpload + Cfndef
33
Use case:
Incident Management Blockchain Cost
• 32 process instances with a total 256 transactions
• Deployment of factory contract costs 0.032 Ether (one-time cost)
• Each run with data transformation costs 0.0347 Ether
• Total cost is approx. US$1.34 per instance
• Exchange rate of US$420 / ETH
• Gas price of 2 Gwei
39
Use case:
Incident Management Amazon SWF Cost
• EC2 t2.micro VM for trigger and SWF task worker
• Process instances executed in sequence
• US$0.92 for 1,000 process instances
• US$0.000925 per instance
• Data retention for 1 day
• US$0.002745 per instance
• Data retention for 365 days
• Cost breakdown
40
Comparison
• Process instance execution cost on blockchain is three orders of
magnitude higher than on Amazon SWF
• Excluding the one-time factory contract deployment
• Blockchain stores the result in perpetuity
• As long as the blockchain is in existence
• Ongoing cost for data storage on Amazon SWF
• Store for 243,863 days (approx. 668 years) to reach break-even (with a rate of
US$420 / ETH)
41
Volatility of Cryptocurrency
• Sensitivity to the volatility of the exchange rate
• Comparison
• Exchange rate
• Retention rate
(how long the data
is stored)
42
Why Blockchain
• Blockchain provides trustworthy storage and execution environment
• No trust in any single third-party
• Conventionally participants need to jointly agree on a mutually-trusted third
party
• E.g. AWS (for confidentiality and truthful execution)
• The party controlling the Amazon SWF account
• Public blockchain supports payment and escrow
• Sending cryptocurrency with existing messages would not incur additional cost
• …due to a flat fee structure
• Offset the premium cost of distrust
• Commercial escrow service charge 0.5% to 3.25%
• Lower the cost of process executions involving monetary transaction
• Only possible if acceptable crypto-coin can be established or used
Co-opetition
• Organizations may cooperate
for some cases to achieve
business goals
• …but compete in other cases
43
Analysing Data from Blockchains
SOCCA Keynote
Prof. Dr. Ingo Weber | Nov. 2020
ingo.weber@tu-berlin.de | linkedin.com/in/ingomweber/ | Twitter: @ingomweber
References
1. Xiwei Xu, Ingo Weber, Mark Staples. Architecture for Blockchain Applications. Springer, 2019.
2. Di Ciccio, Claudio; Cecconi, Alessio; Mendling, Jan; Felix, Dominik; Haas, Dominik; Lilek, Daniel; Riel, Florian; Rumpl,
Andreas; Uhlig, Philipp. Blockchain-Based Traceability of Inter-organisational Business Processes. In BMSD 2018.
3. Christopher Klinkmüller, Ingo Weber, Alexander Ponomarev, An Binh Tran, Wil van der Aalst. Efficient Logging for
Blockchain Applications. arXiv:2001.10281 [cs.SE], January 2020, https://arxiv.org/abs/2001.10281
4. https://github.com/ChrisKlinkmueller/Ethereum-Logging-Framework , accessed 11/2020
5. Christopher Klinkmüller, Alex Ponomarev, An Binh Tran, Ingo Weber, and Wil van der Aalst. Mining blockchain processes:
Extracting process mining data from blockchain applications. In Blockchain Forum of the International Conference on
Business Process Management (BPM), Vienna, Austria, September 2019.
6. Rimba, P., Tran, A. B., Weber, I., Staples, M., Ponomarev, A., and Xu, X. Comparing blockchain and cloud services for
business process execution. In ICSA’17: IEEE International Conference on Software Architecture (Gothenburg, Sweden,
Apr. 2017).
7. Rimba, P., Tran, A. B., Weber, I., Staples, M., Ponomarev, A., and Xu, X. Quantifying the cost of distrust: Comparing
blockchain and cloud services for business process execution. Information Systems Frontiers 22, 2 (2020), 489–507.
45

More Related Content

What's hot

How to Create Blockchain Products by Slice.Market CTO
How to Create Blockchain Products by Slice.Market CTOHow to Create Blockchain Products by Slice.Market CTO
How to Create Blockchain Products by Slice.Market CTO
Product School
 
Software Architecture and Model-driven Engineering for Blockchain Applications
Software Architecture and Model-driven Engineering for Blockchain ApplicationsSoftware Architecture and Model-driven Engineering for Blockchain Applications
Software Architecture and Model-driven Engineering for Blockchain Applications
Ingo Weber
 
Behavioral Analytics and Blockchain Applications – a Reliability View. Keynot...
Behavioral Analytics and Blockchain Applications – a Reliability View. Keynot...Behavioral Analytics and Blockchain Applications – a Reliability View. Keynot...
Behavioral Analytics and Blockchain Applications – a Reliability View. Keynot...
Ingo Weber
 
blockchain and iot: Opportunities and Challanges
blockchain and iot: Opportunities and Challangesblockchain and iot: Opportunities and Challanges
blockchain and iot: Opportunities and Challanges
Chetan Kumar S
 
2019 blockchain economy
2019 blockchain economy2019 blockchain economy
2019 blockchain economy
Heung-No Lee
 
Icsa2018 blockchain tutorial
Icsa2018 blockchain tutorialIcsa2018 blockchain tutorial
Icsa2018 blockchain tutorial
Len Bass
 
Blockchain : A Catalyst for New Approaches in Insurance
Blockchain : A Catalyst for New Approaches in Insurance Blockchain : A Catalyst for New Approaches in Insurance
Blockchain : A Catalyst for New Approaches in Insurance
VIJAY MUTHU
 
IDC - Blockchain Threat Model
IDC - Blockchain Threat ModelIDC - Blockchain Threat Model
IDC - Blockchain Threat Model
PeteLind
 
Blockchain Technologies
Blockchain TechnologiesBlockchain Technologies
Blockchain Technologies
Adri Jovin
 
Blockchain for IoT Security and Privacy: The Case Study of a Smart Home
Blockchain for IoT Security and Privacy: The Case Study of a Smart HomeBlockchain for IoT Security and Privacy: The Case Study of a Smart Home
Blockchain for IoT Security and Privacy: The Case Study of a Smart Home
Kishor Datta Gupta
 
Introduction to Blockchain Governance Models
Introduction to Blockchain Governance ModelsIntroduction to Blockchain Governance Models
Introduction to Blockchain Governance Models
Gokul Alex
 
Blockchain: The New Technology of Trust
Blockchain: The New Technology of TrustBlockchain: The New Technology of Trust
Blockchain: The New Technology of Trust
Macha Pujitha
 
Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)
Financial Poise
 
Blockchain workshop 101
Blockchain workshop 101Blockchain workshop 101
Blockchain workshop 101
Karthikeyan VK
 
Confidential Computing - Analysing Data Without Seeing Data
Confidential Computing - Analysing Data Without Seeing DataConfidential Computing - Analysing Data Without Seeing Data
Confidential Computing - Analysing Data Without Seeing Data
Maximilian Ott
 
Blockchain on Azure and Use Cases
Blockchain on Azure and Use CasesBlockchain on Azure and Use Cases
Blockchain on Azure and Use Cases
Nuri Cankaya
 
Blockchain Fundamentals Quickstart
Blockchain Fundamentals Quickstart Blockchain Fundamentals Quickstart
Blockchain Fundamentals Quickstart
Joseph Holbrook, Chief Learning Officer (CLO)
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architecture
Tomasz Tomczyk
 
Blockchains and databases a new era in distributed computing
Blockchains and databases a new era in distributed computingBlockchains and databases a new era in distributed computing
Blockchains and databases a new era in distributed computing
InfinIT - Innovationsnetværket for it
 
Blockchain and its impact on Data Science and Financial Services
Blockchain and its impact on Data Science and Financial ServicesBlockchain and its impact on Data Science and Financial Services
Blockchain and its impact on Data Science and Financial Services
Ratnakar Pandey
 

What's hot (20)

How to Create Blockchain Products by Slice.Market CTO
How to Create Blockchain Products by Slice.Market CTOHow to Create Blockchain Products by Slice.Market CTO
How to Create Blockchain Products by Slice.Market CTO
 
Software Architecture and Model-driven Engineering for Blockchain Applications
Software Architecture and Model-driven Engineering for Blockchain ApplicationsSoftware Architecture and Model-driven Engineering for Blockchain Applications
Software Architecture and Model-driven Engineering for Blockchain Applications
 
Behavioral Analytics and Blockchain Applications – a Reliability View. Keynot...
Behavioral Analytics and Blockchain Applications – a Reliability View. Keynot...Behavioral Analytics and Blockchain Applications – a Reliability View. Keynot...
Behavioral Analytics and Blockchain Applications – a Reliability View. Keynot...
 
blockchain and iot: Opportunities and Challanges
blockchain and iot: Opportunities and Challangesblockchain and iot: Opportunities and Challanges
blockchain and iot: Opportunities and Challanges
 
2019 blockchain economy
2019 blockchain economy2019 blockchain economy
2019 blockchain economy
 
Icsa2018 blockchain tutorial
Icsa2018 blockchain tutorialIcsa2018 blockchain tutorial
Icsa2018 blockchain tutorial
 
Blockchain : A Catalyst for New Approaches in Insurance
Blockchain : A Catalyst for New Approaches in Insurance Blockchain : A Catalyst for New Approaches in Insurance
Blockchain : A Catalyst for New Approaches in Insurance
 
IDC - Blockchain Threat Model
IDC - Blockchain Threat ModelIDC - Blockchain Threat Model
IDC - Blockchain Threat Model
 
Blockchain Technologies
Blockchain TechnologiesBlockchain Technologies
Blockchain Technologies
 
Blockchain for IoT Security and Privacy: The Case Study of a Smart Home
Blockchain for IoT Security and Privacy: The Case Study of a Smart HomeBlockchain for IoT Security and Privacy: The Case Study of a Smart Home
Blockchain for IoT Security and Privacy: The Case Study of a Smart Home
 
Introduction to Blockchain Governance Models
Introduction to Blockchain Governance ModelsIntroduction to Blockchain Governance Models
Introduction to Blockchain Governance Models
 
Blockchain: The New Technology of Trust
Blockchain: The New Technology of TrustBlockchain: The New Technology of Trust
Blockchain: The New Technology of Trust
 
Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)
 
Blockchain workshop 101
Blockchain workshop 101Blockchain workshop 101
Blockchain workshop 101
 
Confidential Computing - Analysing Data Without Seeing Data
Confidential Computing - Analysing Data Without Seeing DataConfidential Computing - Analysing Data Without Seeing Data
Confidential Computing - Analysing Data Without Seeing Data
 
Blockchain on Azure and Use Cases
Blockchain on Azure and Use CasesBlockchain on Azure and Use Cases
Blockchain on Azure and Use Cases
 
Blockchain Fundamentals Quickstart
Blockchain Fundamentals Quickstart Blockchain Fundamentals Quickstart
Blockchain Fundamentals Quickstart
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architecture
 
Blockchains and databases a new era in distributed computing
Blockchains and databases a new era in distributed computingBlockchains and databases a new era in distributed computing
Blockchains and databases a new era in distributed computing
 
Blockchain and its impact on Data Science and Financial Services
Blockchain and its impact on Data Science and Financial ServicesBlockchain and its impact on Data Science and Financial Services
Blockchain and its impact on Data Science and Financial Services
 

Similar to Analysing Data from Blockchains - Keynote @ SOCCA 2020

Blockchain Application Design and Development, and the Case of Programmable M...
Blockchain Application Design and Development, and the Case of Programmable M...Blockchain Application Design and Development, and the Case of Programmable M...
Blockchain Application Design and Development, and the Case of Programmable M...
Ingo Weber
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
Ponthota Viswanath Reddy
 
Block chain technology
Block chain technology Block chain technology
Block chain technology
Ponthota Viswanath Reddy
 
Blockchain on the oracle cloud, the next big thing
Blockchain on the oracle cloud, the next big thingBlockchain on the oracle cloud, the next big thing
Blockchain on the oracle cloud, the next big thing
Robert van Mölken
 
Blockchain Tech Approach Whitepaper
Blockchain Tech Approach WhitepaperBlockchain Tech Approach Whitepaper
Blockchain Tech Approach Whitepaper
Property Bihar
 
An introduction to blockchain and hyperledger v ru
An introduction to blockchain and hyperledger v ruAn introduction to blockchain and hyperledger v ru
An introduction to blockchain and hyperledger v ru
LennartF
 
Launching a Rollup & Appchain: Everything from Idea to its Implementation
Launching a Rollup & Appchain: Everything from Idea to its ImplementationLaunching a Rollup & Appchain: Everything from Idea to its Implementation
Launching a Rollup & Appchain: Everything from Idea to its Implementation
Zeeve
 
Architecture and operations.pptx
Architecture and operations.pptxArchitecture and operations.pptx
Architecture and operations.pptx
harshitmittal737363
 
InitVerse Blockchain - 5 minutes to understand the blockchain.pdf
InitVerse Blockchain - 5 minutes to understand the blockchain.pdfInitVerse Blockchain - 5 minutes to understand the blockchain.pdf
InitVerse Blockchain - 5 minutes to understand the blockchain.pdf
InitVerse Blockchain
 
Wwc developing hyperledger applications v4
Wwc  developing hyperledger applications v4Wwc  developing hyperledger applications v4
Wwc developing hyperledger applications v4
LennartF
 
Blockchain in FinTech
Blockchain in FinTechBlockchain in FinTech
Blockchain in FinTech
Aurobindo Nayak
 
Block chain
Block chainBlock chain
Block chain
TejashBansal2
 
BlockChain-1.pptx
BlockChain-1.pptxBlockChain-1.pptx
BlockChain-1.pptx
BiswaranjanSwain19
 
Introduction to Blockchain and Hyperledger
Introduction to Blockchain and HyperledgerIntroduction to Blockchain and Hyperledger
Introduction to Blockchain and Hyperledger
Dev_Events
 
IBM Blockchain Platform - Architectural Good Practices v1.0
IBM Blockchain Platform - Architectural Good Practices v1.0IBM Blockchain Platform - Architectural Good Practices v1.0
IBM Blockchain Platform - Architectural Good Practices v1.0
Matt Lucas
 
Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)
Tomoaki Sato
 
Blockchain Technology for Public and Commercial Libraries
Blockchain Technology for Public and Commercial LibrariesBlockchain Technology for Public and Commercial Libraries
Blockchain Technology for Public and Commercial Libraries
David Nzoputa Ofili
 
module-1.pptx
module-1.pptxmodule-1.pptx
module-1.pptx
Raju385766
 
Blockchain Technology: Adoption Challenges, Platform and Applications
Blockchain Technology: Adoption Challenges, Platform and ApplicationsBlockchain Technology: Adoption Challenges, Platform and Applications
Blockchain Technology: Adoption Challenges, Platform and Applications
Sanjeev Verma, PhD
 
Blockchain Technology: Adoption Challenges, Platform and Applications
Blockchain Technology: Adoption Challenges, Platform and ApplicationsBlockchain Technology: Adoption Challenges, Platform and Applications
Blockchain Technology: Adoption Challenges, Platform and Applications
Sanjeev Verma, PhD
 

Similar to Analysing Data from Blockchains - Keynote @ SOCCA 2020 (20)

Blockchain Application Design and Development, and the Case of Programmable M...
Blockchain Application Design and Development, and the Case of Programmable M...Blockchain Application Design and Development, and the Case of Programmable M...
Blockchain Application Design and Development, and the Case of Programmable M...
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
 
Block chain technology
Block chain technology Block chain technology
Block chain technology
 
Blockchain on the oracle cloud, the next big thing
Blockchain on the oracle cloud, the next big thingBlockchain on the oracle cloud, the next big thing
Blockchain on the oracle cloud, the next big thing
 
Blockchain Tech Approach Whitepaper
Blockchain Tech Approach WhitepaperBlockchain Tech Approach Whitepaper
Blockchain Tech Approach Whitepaper
 
An introduction to blockchain and hyperledger v ru
An introduction to blockchain and hyperledger v ruAn introduction to blockchain and hyperledger v ru
An introduction to blockchain and hyperledger v ru
 
Launching a Rollup & Appchain: Everything from Idea to its Implementation
Launching a Rollup & Appchain: Everything from Idea to its ImplementationLaunching a Rollup & Appchain: Everything from Idea to its Implementation
Launching a Rollup & Appchain: Everything from Idea to its Implementation
 
Architecture and operations.pptx
Architecture and operations.pptxArchitecture and operations.pptx
Architecture and operations.pptx
 
InitVerse Blockchain - 5 minutes to understand the blockchain.pdf
InitVerse Blockchain - 5 minutes to understand the blockchain.pdfInitVerse Blockchain - 5 minutes to understand the blockchain.pdf
InitVerse Blockchain - 5 minutes to understand the blockchain.pdf
 
Wwc developing hyperledger applications v4
Wwc  developing hyperledger applications v4Wwc  developing hyperledger applications v4
Wwc developing hyperledger applications v4
 
Blockchain in FinTech
Blockchain in FinTechBlockchain in FinTech
Blockchain in FinTech
 
Block chain
Block chainBlock chain
Block chain
 
BlockChain-1.pptx
BlockChain-1.pptxBlockChain-1.pptx
BlockChain-1.pptx
 
Introduction to Blockchain and Hyperledger
Introduction to Blockchain and HyperledgerIntroduction to Blockchain and Hyperledger
Introduction to Blockchain and Hyperledger
 
IBM Blockchain Platform - Architectural Good Practices v1.0
IBM Blockchain Platform - Architectural Good Practices v1.0IBM Blockchain Platform - Architectural Good Practices v1.0
IBM Blockchain Platform - Architectural Good Practices v1.0
 
Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)
 
Blockchain Technology for Public and Commercial Libraries
Blockchain Technology for Public and Commercial LibrariesBlockchain Technology for Public and Commercial Libraries
Blockchain Technology for Public and Commercial Libraries
 
module-1.pptx
module-1.pptxmodule-1.pptx
module-1.pptx
 
Blockchain Technology: Adoption Challenges, Platform and Applications
Blockchain Technology: Adoption Challenges, Platform and ApplicationsBlockchain Technology: Adoption Challenges, Platform and Applications
Blockchain Technology: Adoption Challenges, Platform and Applications
 
Blockchain Technology: Adoption Challenges, Platform and Applications
Blockchain Technology: Adoption Challenges, Platform and ApplicationsBlockchain Technology: Adoption Challenges, Platform and Applications
Blockchain Technology: Adoption Challenges, Platform and Applications
 

Recently uploaded

Direct Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart AgricultureDirect Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart Agriculture
International Food Policy Research Institute- South Asia Office
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Leonel Morgado
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
Sérgio Sacani
 
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
Abdul Wali Khan University Mardan,kP,Pakistan
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
vluwdy49
 
The cost of acquiring information by natural selection
The cost of acquiring information by natural selectionThe cost of acquiring information by natural selection
The cost of acquiring information by natural selection
Carl Bergstrom
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
Scintica Instrumentation
 
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdfMending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Selcen Ozturkcan
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
University of Hertfordshire
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
Areesha Ahmad
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
by6843629
 
Katherine Romanak - Geologic CO2 Storage.pdf
Katherine Romanak - Geologic CO2 Storage.pdfKatherine Romanak - Geologic CO2 Storage.pdf
Katherine Romanak - Geologic CO2 Storage.pdf
Texas Alliance of Groundwater Districts
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
Sérgio Sacani
 
Pests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdfPests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdf
PirithiRaju
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
Leonel Morgado
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
MaheshaNanjegowda
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
Anagha Prasad
 
Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)
Sciences of Europe
 
11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf
PirithiRaju
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
Shashank Shekhar Pandey
 

Recently uploaded (20)

Direct Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart AgricultureDirect Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart Agriculture
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
 
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
 
The cost of acquiring information by natural selection
The cost of acquiring information by natural selectionThe cost of acquiring information by natural selection
The cost of acquiring information by natural selection
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
 
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdfMending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
 
Katherine Romanak - Geologic CO2 Storage.pdf
Katherine Romanak - Geologic CO2 Storage.pdfKatherine Romanak - Geologic CO2 Storage.pdf
Katherine Romanak - Geologic CO2 Storage.pdf
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
 
Pests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdfPests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdf
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
 
Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)
 
11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
 

Analysing Data from Blockchains - Keynote @ SOCCA 2020

  • 1. Analysing Data from Blockchains SOCCA Keynote Prof. Dr. Ingo Weber | Nov. 2020 ingo.weber@tu-berlin.de | linkedin.com/in/ingomweber/ | Twitter: @ingomweber
  • 3. What is a blockchain? Parable of the blind men and the elephant, see e.g., https://wildequus.org/2014/05/07/sufi-story-blind-men-elephant/ (source of figure)
  • 4. What is a blockchain? No, it’s a code execution platform! It‘s a database! Actually, it‘s a network! Clearly, it’s a BPMS! Parable of the blind men and the elephant, see e.g., https://wildequus.org/2014/05/07/sufi-story-blind-men-elephant/ (source of figure)
  • 5. Defining Blockchain (1) • Distributed Ledger • An “append-only” transaction store distributed across machines (immutability) • A new transaction might reverse a previous transaction, but both remain part of the ledger • Blockchain • A distributed ledger structured into a linked list of blocks • Each block contains an ordered set of transactions • Use cryptographic hashes to secure the link from a block to its predecessor
  • 6. Defining Blockchain (2) • A Blockchain System consists of • A blockchain network of nodes • A blockchain data structure • For the ledger replicated across the blockchain network • Full nodes hold a full replica of the ledger • A network protocol • Defines rights, responsibilities, and means of communication, verification, validation, and consensus across the nodes in the blockchain network • Includes ensuring authorisation and authentication of new transactions, mechanisms for appending new blocks, incentive mechanisms
  • 7. Defining Blockchain (3) • A Public Blockchain is a blockchain system with the following characteristics: • Has an open network • Nodes can join and leave without requiring permission from anyone • All full nodes can verify new transactions and blocks • Incentive mechanism to ensure the correct operation • Valid transactions are processed and included in the ledger and invalid transactions are rejected • A Blockchain Platform is the technology needed to operate a blockchain • Blockchain client software for processing nodes • The local data store • Alternative clients to access the blockchain network
  • 8. Decentralised Applications and Smart Contracts • Smart contracts • Programs deployed as data and executed in transactions on the blockchain • Blockchain can be a computational platform (more than a simple distributed database) • Code is deterministic and immutable once deployed • Can invoke other smart contracts • Can hold and transfer digital assets • Decentralized applications or dapps • Main functionality is implemented through smart contracts • Backend is executed in a decentralized environment • Frontend can be hosted as a web site on a centralized server • Interact with its backend through an API • Could use decentralized data storage such as IPFS • “State of the dapps” is a directory recorded on blockchain: https://www.stateofthedapps.com/
  • 9. Blockchain defined (1/4) Verbatim from the Book • Definition 1 (Distributed Ledger). A Distributed Ledger is an append- only store of transactions which is distributed across many machines. • Definition 2 (Blockchain (Concept)). A Blockchain is a distributed ledger that is structured into a linked list of blocks. Each block contains an ordered set of transactions. Typical solutions use cryptographic hashes to secure the link from a block to its predecessor. Ingo Weber 9 |
  • 10. Blockchain defined (2/4) Verbatim from the Book • Definition 3 (Blockchain System). A Blockchain System consists of: • a blockchain network of machines, also called nodes; • a blockchain data structure, for the ledger that is replicated across the blockchain network. Nodes that hold a full replica of this ledger are referred to as full nodes; • a network protocol that defines rights, responsibilities, and means of communication, verification, validation, and consensus across the nodes in the network. This includes ensuring authorization and authentication of new transactions, mechanisms for appending new blocks, incentive mechanisms (if needed), and similar aspects. Ingo Weber 10 |
  • 11. Blockchain defined (3/4) Verbatim from the Book • Definition 4 (Public Blockchain). A Public Blockchain is a blockchain system that has the following characteristics: • it has an open network where nodes can join and leave as they please without requiring permission from anyone; • all full nodes in the network can verify each new piece of data added to the data structure, including blocks, transactions, and effects of transactions; and • its protocol includes an incentive mechanism that aims to ensure the correct operation of the blockchain system including that valid transactions are processed and included in the ledger, and that invalid transactions are rejected. Ingo Weber 11 |
  • 12. Blockchain defined (4/4) Verbatim from the Book • Definition 5 (Blockchain Platform). A blockchain platform is the technology needed to operate a blockchain. This comprises the blockchain client software for processing nodes, the local data store for nodes, and any alternative clients to access the blockchain network. • Definition 6 (Smart Contract). Smart contracts are programs deployed as data in the blockchain ledger, and executed in transactions on the blockchain. Smart contracts can hold and transfer digital assets managed by the blockchain, and can invoke other smart contracts stored on the blockchain. Smart contract code is deterministic and immutable once deployed. • Definition 7 (dapp). A decentralized application or dapp is a software system that is designed to provide its main functionality through smart contracts. Ingo Weber 12 |
  • 13. Book: Architecture for Blockchain Applications Xiwei Xu, Ingo Weber, Mark Staples. Architecture for Blockchain Applications. Springer, 2019. [1] ➔ Includes the definitions from the previous slides 13
  • 15. Ethviewer Live visualization of the Ethereum Blockchain: http://ethviewer.live → “Extended” view splits TX pool by cost 15
  • 16. Motivation • Features of decentralized apps can be controlled by developers, but control over when, where, and under what circumstances a smart contract is executed is limited • Analysis of blockchain operations is critical, for monitoring, planning, improvements, adaptation, auditing, and analysis of user behavior and failures • Data is in principle present given the immutable ledger → however, extracting it is subject to interpretation, can be inconvenient and slow [2] 16
  • 17. Approach ELF: Ethereum Logging Framework [3] 17 In collaboration with Data61, CSIRO we are developing the first general-purpose logging framework for Ethereum • Highly configurable and open-source [4] • (Predecessor: BlockXES [5])
  • 18. • ELF’s manifest: specification of the interpretation • Can be shared among parties • Data output: • In CSV, TXT, and XES formats • Process mining can be used to understand how clients and software interact • Also for blockchain applications and dapps • XES format is widely supported by those tools • Data can be extracted once or can be streamed • Logging code generation: space-optimized storage of required data 18 Approach continued ELF: Ethereum Logging Framework [3]
  • 19. Selected ELF Use Cases XES Logo: http://www.xes-standard.org/_detail/xes/xeslogo.png, accessed: 12/8/2019 19 Basic block statistics: CSV → Excel
  • 20. Selected ELF Use Cases continued XES Logo: http://www.xes-standard.org/_detail/xes/xeslogo.png, accessed: 12/8/2019 20 Augur contract register updates → textual log format
  • 21. Selected ELF Use Cases continued XES Logo: http://www.xes-standard.org/_detail/xes/xeslogo.png, accessed: 12/8/2019 21 CryptoKitties lifecycle process → XES, then process discovery (BPMN)
  • 22. Selected ELF Use Cases continued XES Logo: http://www.xes-standard.org/_detail/xes/xeslogo.png, accessed: 12/8/2019 22 Augur Markets → XES, then process discovery (Directly-Follows Graphs) Credit: M. Rebesky
  • 24. Cost Models • The Cost of Distrust: how much more expensive is using Ethereum over public cloud – operational cost of all components that are needed • Use the execution of an instance of a business process model as sample application • Cost Model of Blockchain Infrastructure (Ethereum) • Turing complete language to implement business logic • Cost Model of Amazon Web Services (Amazon SWF) • Dedicated to process execution • Implements commonly-used workflow patterns and messaging patterns • AWS is a leading commercial cloud computing provider 24
  • 25. Cost Models • The Cost of Distrust: how much more expensive is using Ethereum over public cloud – operational cost of all components that are needed • Use the execution of an instance of a business process model as sample application • Cost Model of Blockchain Infrastructure (Ethereum) • Turing complete language to implement business logic • Cost Model of Amazon Web Services (Amazon SWF) • Dedicated to process execution • Implements commonly-used workflow patterns and messaging patterns • AWS is a leading commercial cloud computing provider 25
  • 26. Sample Application: Supply Chain Process • Supply Chain Process as BPMN Collaboration Diagram 26
  • 27. Cost Models • The Cost of Distrust: how much more expensive is using Ethereum over public cloud – operational cost of all components that are needed • Use the execution of an instance of a business process model as sample application • Cost Model of Blockchain Infrastructure (Ethereum) • Turing complete language to implement business logic • Cost Model of Amazon Web Services (Amazon SWF) • Dedicated to process execution • Implements commonly-used workflow patterns and messaging patterns • AWS is a leading commercial cloud computing provider 28
  • 28. Sample Application using Ethereum • Interaction between internal process implementation, triggers, and process instance smart contract • Sequence Diagram of the First Two Tasks: Bulk Buyer BB Trigger Smart Contract Manufact- urer Mf. Trigger API call: Order goods Blockchain Transaction (BCTX) Smart Contract effect Check conformance API call MiddlemanMm. Trigger API call: Placeorder Execute internal logic BCTX Smart Contract effect Check conformance API call 29 Interface component (1 per party) Smart contract (1 in total) Enterprise applications, people, etc. (out of scope)
  • 29. Contract Creation Cost 1/2 • Contract creation transaction • Data compiled bytecode Cpload = payload (in bytes) × Cgas/byte • Permanent storage incurs cost • Value (optional Ether transfer) • “Endowment” upon initialization • Ethereum address is assigned to it • Calculated with a deterministic function depending only on the creator’s Ethereum account • Cost for contract creation: Ccreate = Ctx + Caddr + Cpload + Cfndef • Ctx: 21,000 gas base cost for transaction itself • Caddr: 32,000 gas for allocating address • Cfndef : consumed by the opcodes in the function definition • Cost of payload for contract bytecode is 200 gas per byte • Cost of payload for data in a financial transaction/message call is 68 gas per non-zero byte and 4 per zero byte 32
  • 30. Contract Creation Cost 2/2 • Contract can be created by another contract • Cheaper Without Ctx Ccreate’ = Caddr + Cpload + Cfndef 33
  • 31. Use case: Incident Management Blockchain Cost • 32 process instances with a total 256 transactions • Deployment of factory contract costs 0.032 Ether (one-time cost) • Each run with data transformation costs 0.0347 Ether • Total cost is approx. US$1.34 per instance • Exchange rate of US$420 / ETH • Gas price of 2 Gwei 39
  • 32. Use case: Incident Management Amazon SWF Cost • EC2 t2.micro VM for trigger and SWF task worker • Process instances executed in sequence • US$0.92 for 1,000 process instances • US$0.000925 per instance • Data retention for 1 day • US$0.002745 per instance • Data retention for 365 days • Cost breakdown 40
  • 33. Comparison • Process instance execution cost on blockchain is three orders of magnitude higher than on Amazon SWF • Excluding the one-time factory contract deployment • Blockchain stores the result in perpetuity • As long as the blockchain is in existence • Ongoing cost for data storage on Amazon SWF • Store for 243,863 days (approx. 668 years) to reach break-even (with a rate of US$420 / ETH) 41
  • 34. Volatility of Cryptocurrency • Sensitivity to the volatility of the exchange rate • Comparison • Exchange rate • Retention rate (how long the data is stored) 42
  • 35. Why Blockchain • Blockchain provides trustworthy storage and execution environment • No trust in any single third-party • Conventionally participants need to jointly agree on a mutually-trusted third party • E.g. AWS (for confidentiality and truthful execution) • The party controlling the Amazon SWF account • Public blockchain supports payment and escrow • Sending cryptocurrency with existing messages would not incur additional cost • …due to a flat fee structure • Offset the premium cost of distrust • Commercial escrow service charge 0.5% to 3.25% • Lower the cost of process executions involving monetary transaction • Only possible if acceptable crypto-coin can be established or used Co-opetition • Organizations may cooperate for some cases to achieve business goals • …but compete in other cases 43
  • 36. Analysing Data from Blockchains SOCCA Keynote Prof. Dr. Ingo Weber | Nov. 2020 ingo.weber@tu-berlin.de | linkedin.com/in/ingomweber/ | Twitter: @ingomweber
  • 37. References 1. Xiwei Xu, Ingo Weber, Mark Staples. Architecture for Blockchain Applications. Springer, 2019. 2. Di Ciccio, Claudio; Cecconi, Alessio; Mendling, Jan; Felix, Dominik; Haas, Dominik; Lilek, Daniel; Riel, Florian; Rumpl, Andreas; Uhlig, Philipp. Blockchain-Based Traceability of Inter-organisational Business Processes. In BMSD 2018. 3. Christopher Klinkmüller, Ingo Weber, Alexander Ponomarev, An Binh Tran, Wil van der Aalst. Efficient Logging for Blockchain Applications. arXiv:2001.10281 [cs.SE], January 2020, https://arxiv.org/abs/2001.10281 4. https://github.com/ChrisKlinkmueller/Ethereum-Logging-Framework , accessed 11/2020 5. Christopher Klinkmüller, Alex Ponomarev, An Binh Tran, Ingo Weber, and Wil van der Aalst. Mining blockchain processes: Extracting process mining data from blockchain applications. In Blockchain Forum of the International Conference on Business Process Management (BPM), Vienna, Austria, September 2019. 6. Rimba, P., Tran, A. B., Weber, I., Staples, M., Ponomarev, A., and Xu, X. Comparing blockchain and cloud services for business process execution. In ICSA’17: IEEE International Conference on Software Architecture (Gothenburg, Sweden, Apr. 2017). 7. Rimba, P., Tran, A. B., Weber, I., Staples, M., Ponomarev, A., and Xu, X. Quantifying the cost of distrust: Comparing blockchain and cloud services for business process execution. Information Systems Frontiers 22, 2 (2020), 489–507. 45