blocksci: a platform for blockchain ... - scaling bitcoin · bitcoin as a store of value most...

17
BlockSci: a platform for blockchain science and exploration Harry Kalodner, Malte Möser, Steven Goldfeder, Alishah Chator, and Arvind Narayanan Princeton University 1

Upload: others

Post on 03-Oct-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

BlockSci: a platform for blockchain science and exploration

Harry Kalodner, Malte Möser, Steven Goldfeder, Alishah Chator, and Arvind NarayananPrinceton University

1

Page 2: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Why we need analytics

● Motivate scaling solutions

● Discover new areas for improvement

● Categorize demand by use cases

2

Page 3: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Can we tell the difference between organic and artificial demand?

3

Page 4: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Differentiating demand

● Real spending or self churn

● Store of value or medium of exchange

● Organic demand or malicious spam

4

Page 5: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

The velocity of Bitcoin

● Understand usage

● Discount self churn

● Ignore false flags

5

Page 6: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Bitcoin as a store of value

Most spikes in activity on the blockchain correlate with spikes in trade volume

6

Page 7: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Attempting to understand wallets

● Link addresses together to form wallets

● Allow users to easily and rapidly try out different heuristics

7

Page 8: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Aren’t there existing tools for this?

● Closed source

● Limited functionality

● Insufficient performance

8

Page 9: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

The solution

9

Page 10: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

BlockSci

10

Page 11: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

BlockSci

11

Page 12: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Broad Applicability

● Python interface for easy usage

● Easy incorporation of external data feeds

● Full support for all standard script types

12

Page 13: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Performance

13

Iterating Over Single Threaded Multithreaded

Transaction headers 13.1 sec 3.2 sec

Transaction outputs 27.9 sec 6.6 sec

Transaction inputs & outputs 46.4 sec 10.3 sec

*Up through block 478,449

Page 14: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

How do we achieve this?

● A customized data format optimized for

locality of information

● Coded in C++ for maximal efficiency

● Uses memory mapping to allow easy

scalability14

Page 15: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Effects on privacy

● Valuable multisig addresses undergo a partial keyset change

● Organizational information is leaked

15

Page 16: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Existing work● Goldfeder, Steven, et al. "When the cookie meets the blockchain: Privacy

risks of web payments via cryptocurrencies." arXiv preprint

arXiv:1708.04748 (2017).

● Kalodner, Harry, et al. "BlockSci: Design and applications of a blockchain

analysis platform." arXiv preprint arXiv:1709.02489 (2017).

16

Page 17: BlockSci: a platform for blockchain ... - Scaling Bitcoin · Bitcoin as a store of value Most spikes in activity on the blockchain correlate with spikes in trade volume 6. Attempting

Thank you!

https://github.com/citp/BlockSci

17