Skip to main content
QUICK REVIEW

[Paper Review] BlockSci: Design and applications of a blockchain analysis platform

Harry Kalodner, Steven Goldfeder|arXiv (Cornell University)|Sep 8, 2017
Blockchain Technology Applications and SecurityComputer Science98 citations
TL;DR

BlockSci is an open-source, in-memory blockchain analysis platform that supports multiple blockchains, provides Python (Jupyter) and C++ interfaces, and offers built-in analytics to accelerate research and commercial analyses. It is substantially faster than prior tools and includes mempool and exchange-rate data integrations.

ABSTRACT

Analysis of blockchain data is useful for both scientific research and commercial applications. We present BlockSci, an open-source software platform for blockchain analysis. BlockSci is versatile in its support for different blockchains and analysis tasks. It incorporates an in-memory, analytical (rather than transactional) database, making it several hundred times faster than existing tools. We describe BlockSci's design and present four analyses that illustrate its capabilities. This is a working paper that accompanies the first public release of BlockSci, available at https://github.com/citp/BlockSci. We seek input from the community to further develop the software and explore other potential applications.

Motivation & Objective

  • Enable fast, flexible analysis of blockchain data for scientific and commercial research.
  • Provide a common interface and efficient parser to support multiple blockchains.
  • Offer built-in analytics (e.g., address clustering, CoinJoin detection) and data feeds (mempool, exchange rates) for richer analyses.
  • Deliver intuitive user interfaces (Jupyter notebooks) and a high-performance C++ core to balance ease of use with speed.

Proposed method

  • Treat blockchains as append-only static snapshots suitable for in-memory analytical databases instead of traditional transactional databases.
  • Develop a high-performance, space- and time-efficient parser that converts diverse blockchains into a common internal format with optimized data layouts (e.g., pointer-like links, fixed-size encodings, deduplicated addresses).
  • Provide an in-memory transaction graph with parallelizable mapreduce-style queries and a memory-mapped data layout for locality and scalability.
  • Expose both a Python (via Jupyter) interface for exploration and a C++ interface for performance-critical tasks; enable inline C++ and selector-based query options to accelerate workflows.
  • Support additional data sources (mempool data, exchange rates) and multiple blockchains through a common API, with ongoing plans for more script types and altcoins.

Experimental results

Research questions

  • RQ1How can blockchain data be analyzed efficiently at scale using an in-memory analytical database?
  • RQ2What is the performance gain of<BlockSci> over existing blockchain analysis tools across representative queries?
  • RQ3How do data integrations (mempool, exchange rates) enhance analyses of blockchain economics and user behavior?
  • RQ4To what extent can address-linking and script parsing improve privacy and forensic analyses across multiple blockchains?

Key findings

  • BlockSci is 15x–600x faster than existing tools for blockchain analysis.
  • It loads and analyzes blockchains with an in-memory analytical model, enabling rapid mapreduce-style queries.
  • It supports multiple blockchains (Bitcoin, Litecoin, Namecoin, Dash, Zcash) through a common importer and format.
  • Analyses demonstrate insights into multisignature privacy weaknesses, Dash privacy, block-space economics, and cryptocurrency velocity.
  • The Python interface (via Jupyter) complements a high-performance C++ backend, with performance-sensitive code in C++ and inline selectors for speed.
  • Memory efficiency and locality are achieved through fixed encodings, pointer-like references, and deduplicated addresses.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.