IPVS/AS
Dennis Przytarski
Blockchain Systems Dennis Przytarski Agenda Motivation Our - - PowerPoint PPT Presentation
IPVS/AS Using Triples as the Data Model for Blockchain Systems Dennis Przytarski Agenda Motivation Our approach Evaluation Example Dennis Przytarski Using Triples as the Data Model for Blockchain Systems 2 Motivation
IPVS/AS
Dennis Przytarski
2
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
3
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
Blockchain Block n-1 Block n Block n-2
Header
TRXN
Header
TRXN
Header
TRXN
Key-value store (Document store)
World State
queries
Query Engine
Transaction
Key Value
latest application state Ledger
key value CAR0 {color:“blue“,make:“Ford“} Example
is derived from
parcel service
waste management
4
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
based on [1]
BLOCKCHAIN SYSTEMS
5
DATABASE SYSTEMS
an efficient data representation
data structure (tamper-resistance)
DESIGN REQUIREMENTS
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
6
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
7
[2]: The Merkle B-Tree: Li, Feifei, et al. "Dynamic authenticated index structures for outsourced databases." SIGMOD 2006.
Pointer Pointer Pointer Hash B Hash C Hash D
Hash A
Root node Node
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
Hash B Hash C Hash D’
Blockchain Block n-1 Block n Block n-2
Header
TRXN
Header
TRXN
Header
TRXN
Key-value store (Document store)
World State
Block n-1 Block n Block n-2
queries
Query Engine Query Engine
Transaction
Key Value
latest application state
queries latest application state Merkle B-tree
<Triple>
Ledger
key value CAR0 {color:“blue“,make:“Ford“} entity attribute value CAR0 car/color blue CAR0 car/make Ford Example Example
queries historical application state is derived from Header Header Header
latest application state Blockchain
8
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
Blockchain Block n-1 Block n Block n-2 Block n-3 Key-value store (Document store)
World State
Graph database Relational database
Analytics
is exported from is derived from
Transaction log
Blockchain Ledger
Header
TRXN
Header
TRXN
Header
TRXN
Header
TRXN
replaced by Storage Architecture Triplestore
Blockchain
9
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
data structure data integrity checks must be done manually
10
if needed data integrity checks are done manually if needed data integrity checks are done manually built-in data integrity checks (tamper-resistance) Query Engine Query Engine Query Engine Key-value store (Document store)
World State
Graph database Relational database
Analytics
is exported from is derived from
Transaction log
Blockchain
Triplestore
Blockchain Ledger
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
11
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
12
<B9F, name, „Pluto“>
<B9F, type, „planet“>
AEV A <= name
Transaction 1 <B9F, name, „Pluto“> <B9F, type, „planet“>
Hash FC8 Hash E87 Block 1
<B9F, name, „Pluto“> <B9F, type, „dwarf_planet“>
AEV A <= name
Transaction 2 <B9F, type, „dwarf_planet“>
Hash 2F7 Hash E87 Hash C29 Block 2
1 2 4 2 5
Query SELECT ?type ASOF n WHERE [?object name „Pluto“] [?object type ?type] Node
Key Value FC8 E87 FAA 2F7 C29 1 2 3 4 5
Nodes are stored in a key-value store after Block 1 after Block 2 Query result for n=1: ?type is planet for n=2: ?type is dwarf_planet Root of second block identical node
Hash FAA
3
The query engine uses the Merkle B-trees of a block to compute the result of a query Root of first block
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
Thank you! University of Stuttgart IPVS/AS Dennis Przytarski Email: Dennis.Przytarski@ipvs.uni-stuttgart.de
13
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems
permissioned blockchains." Proceedings of the Thirteenth EuroSys Conference. ACM, 2018.
Proceedings of the 2006 ACM SIGMOD international conference on Management of data. ACM, 2006.
Conference on the theory and application of cryptographic techniques. Springer, Berlin, Heidelberg, 1987.
14
Dennis Przytarski • Using Triples as the Data Model for Blockchain Systems