VQL: P Providing Quer ery E Efficien ency a and Data A Authen - - PowerPoint PPT Presentation

vql p providing quer ery e efficien ency a and data a
SMART_READER_LITE
LIVE PREVIEW

VQL: P Providing Quer ery E Efficien ency a and Data A Authen - - PowerPoint PPT Presentation

VQL: P Providing Quer ery E Efficien ency a and Data A Authen enticity in B Bloc ockchai ain S System ems Zhe Pe Peng, Haot aotian Wu, Bin Xi Xiao ao, Songtao Guo Query Design Motivation Blockchain techniques (cryptocurrency,


slide-1
SLIDE 1

VQL: P Providing Quer ery E Efficien ency a and Data A Authen enticity in B Bloc

  • ckchai

ain S System ems

Zhe Pe Peng, Haot aotian Wu, Bin Xi Xiao ao, Songtao Guo

slide-2
SLIDE 2

2

  • Blockchain techniques (cryptocurrency, business

transactions, supply chain, insurance, medical care, etc.)

Query Design Motivation

Illustration of blockchain structure Immutability and verifiability in trustless and distributed environment ! Low query efficiency !

slide-3
SLIDE 3

3

  • Existing query supported blockchain systems:
  • Toshi [1]: provide basic query of block information in Bitcoin
  • Ethereum [2]: maintain the current balance of each account in

each node

  • Etherchain [3]: extend Ethereum basic API to query block time

and count transactions

  • ECBC [4]: build a tree structure to efficiently query historical

transactions of an account

Previous Work

[1] Coinbase: Toshi project. https://github.com/coinbase/toshi [2] Wood, G.: Ethereum: a secure decentralised generalised transaction ledger. In Ethereum Project Yellow Paper, 2014. [3] Etherchain. https://etherchain.org/ [4] Y. Xu, S. Zhao, L. Kong, Y. Zheng, S. Zhang, and Q. Li, “ECBC: A High Performance Educational Certificate Blockchain with Efficient Query,” in International Colloquium on Theoretical Aspects of Computing, 2017.

Limited query services

slide-4
SLIDE 4

4

  • Various data analytical tasks focus on the blockchain:
  • [5] analyses Bitcoin transactions and proves that Bitcoin is

not a fully anonymous system

  • [6] proposes a multi-variant relation model with time series

dataset to detect money laundering

  • [7] builds a reputation network for blockchain users to

reduce transaction risks

Previous Work

[5] Ron, Dorit, and Adi Shamir. "Quantitative analysis of the full bitcoin transaction graph." in International Conference on Financial Cryptography and Data Security. Springer, Berlin, Heidelberg, 2013. [6] MCA, G. Krishnapriya, and M. Prabakaran. "An multi-variant relational model for money laundering identification using time series data set." in the International Journal of Engineering and Science (IJES), vol. 3, pp. 43-47, 2014. [7] Buechler, Matthew, et al. "Decentralized reputation system for transaction networks." in Technical report, University of Pennsylvania, 2015.

slide-5
SLIDE 5

5

  • A query supported blockchain system:
  • How to efficiently support various data analytical tasks
  • n top of blockchain systems?
  • How to provide trusted query results?

Motivation

slide-6
SLIDE 6

6

  • How to provide efficient query services with

verifiability guarantees for blockchain system:

  • Verifiability of querying results by public
  • Querying efficiency
  • Data storage efficiency

Problem

slide-7
SLIDE 7

7

  • Service model
  • Blockchain, Middleware layer, Application layer

Architecture

slide-8
SLIDE 8

System Overview

1

Construct

2

Verify

3

Query

Blockchain Applications Key database Micro database Transactions Verification Transactions Fingerprint Transactions Fingerprint Query Data analysis

① ② ③ ③ ① ②

slide-9
SLIDE 9

9

  • Middleware architecture
  • Key database, Micro database with hash values
  • Store hash values in blockchain
  • Integrity and authenticity functions
  • Hash value of database can be verified by miners
  • Databases are dynamically updated and merged

System Design

slide-10
SLIDE 10

10

  • Middleware update every month
  • Each day
  • Construct a new Micro database
  • Calculate its hash
  • End of each month
  • Merge all Micro databases into Key database
  • Calculate Key database’s hash
  • Delete all Micro databases

Middleware Update Algo.

slide-11
SLIDE 11

11

  • Efficient query services
  • Data Query
  • Block
  • Transaction
  • Data storage efficiency
  • Periodically store snapshot and hash value of database
  • Merge databases to save space

System Design

slide-12
SLIDE 12

12

  • Database verification
  • Data in the middleware are consistent with the blockchain

System Design

Miner Middleware Layer

DB

6d0a 45b2 s86c ...

Database Fingerprint Properties Hash value

name, size, time,...

Download Back-up DB DB DB DB DB DB

6d0a 45b2 s86c ...

Database Fingerprint Properties Hash value

name, size, time,... 6d0a 45b2 s86c ...

Database Fingerprint Properties Hash value

name, size, time,...

BLK #0 BLK #100

...

BLK #101 BLK #200

...

BLK #201 BLK #300

... ...

slide-13
SLIDE 13

13

  • Miner Database verification
  • Download and re-construct databases
  • Data files will be published by the middleware layer
  • Calculate fingerprints and compare
  • hash value published by the middleware layer
  • hash value calculated based on the re-constructed database
  • hash value calculated based on the blockchain data
  • Write verified fingerprints into blocks

Database Verification Algo.

slide-14
SLIDE 14

14

  • Blockchain
  • Ethereum
  • Middleware layer
  • MongoDB

Experimental Implementation

Middleware in cloud Blockchain

Database

Database Fingerprint Transactions peer node

slide-15
SLIDE 15

15

Performance Evaluation

  • Throughput
  • Block query time by number of blocks
  • Transaction query time by number of transactions
slide-16
SLIDE 16

16

  • Query problems in blockchain system
  • Querying efficiency
  • Verifiability of querying results by public
  • Our solution: A Verifiable Query Layer
  • The middleware layer
  • Dynamically construct, update, and merge databases
  • Verify the consistency of constructed databases
  • Experimental analysis

Conclusion

slide-17
SLIDE 17