Visualization + Analysis Blockchains Are Networks Time-series - - PowerPoint PPT Presentation

visualization analysis blockchains are
SMART_READER_LITE
LIVE PREVIEW

Visualization + Analysis Blockchains Are Networks Time-series - - PowerPoint PPT Presentation

Visualization + Analysis Blockchains Are Networks Time-series Visualization Quickly spot properties Quickly spot inconsistencies Ask better questions This Lecture Analyze some properties of cryptocurrencies Tools


slide-1
SLIDE 1

Visualization + Analysis

slide-2
SLIDE 2

Blockchains Are

  • Networks
  • Time-series
slide-3
SLIDE 3

Visualization

  • Quickly spot properties
  • Quickly spot inconsistencies
  • Ask better questions
slide-4
SLIDE 4

This Lecture

  • Analyze some properties of cryptocurrencies
  • Tools
  • Data Sources
  • Insights
  • Sample code
slide-5
SLIDE 5

Distributions

slide-6
SLIDE 6

Distributions

  • Distributions of:
  • Transaction Fees
  • Wallet net worths
  • Bitcoin Script Usage
  • Whales
slide-7
SLIDE 7

Bitcoin Transaction Fees

  • BTC
  • Satoshi per byte
  • 100mn Satoshis = 1 BTC
slide-8
SLIDE 8

Ethereum Transaction Fees

  • ETH
  • Gas
  • 21000 Gas = Base fee
  • Just transferring funds
  • Put down Gas Price
  • Pay Gas Price * Gas Used
  • Put down Gas limit
slide-9
SLIDE 9

Bitcoin Transaction Fees

Fee Txns 8380 1 9407071 2 2841101 … ….

slide-10
SLIDE 10

Why Zeros?

  • Possibly:
  • Miners’ own transactions
  • Incredible generosity
  • Off-chain payment
slide-11
SLIDE 11

Most Common Fee

Fee Txns 1 9407071 3 7448408 4 2863087 … ….

slide-12
SLIDE 12

Distribution

  • Raw bar chart bad for viz (large variance).
  • Solution:
  • log/log plot
slide-13
SLIDE 13

Log-Log Plot

slide-14
SLIDE 14

Log-Log Plot

  • Seems like a truncated power law
slide-15
SLIDE 15

Power Laws

  • 80/20 Rule
  • Internet Networks
  • Traffic Arrival Times
  • Zipf
  • Twitter followers
slide-16
SLIDE 16

Ethereum Gas Prices

slide-17
SLIDE 17

log-normal?

slide-18
SLIDE 18

Ethereum Gas Prices

Fee Txns 121023 1 117 2 7 … ….

slide-19
SLIDE 19

Most Common Fee

Fee Txns 20000000000 11107198 1000000000 7354494 10000000000 7339890 … ….

slide-20
SLIDE 20

Zero Gas Prices?

  • https://www.reddit.com/r/ethereum/comments/7lx1do/

a_christmas_mystery_sweepers_and_zero_gas_price/

  • https://medium.com/chainsecurity/zero-gas-price-transactions-

what-they-do-who-creates-them-and-why-they-might- impact-scalability-aeb6487b8bb0

slide-21
SLIDE 21

Time-Series

slide-22
SLIDE 22

Correlate With Events

  • Correlation to fiat?
  • Correlation to other coins?
slide-23
SLIDE 23

Other Coins

slide-24
SLIDE 24

YTD

slide-25
SLIDE 25

Spearman’s Rank Correlation

Col1 Col2

slide-26
SLIDE 26

Spearman’s Rank Correlation

Col1 Col2 Rank=2 Rank=3 Rank=10 Rank=5 Rank=5 Rank=2 Rank=3 Rank=1

slide-27
SLIDE 27

Spearman’s Rank Correlation

  • Row-wise difference squared : d^2
  • Sum up these row-wise differences
slide-28
SLIDE 28

Spearman’s Rank Correlation

  • +1/-1 : Strong positive / Strong negative
  • 0 : No correlation
slide-29
SLIDE 29

Correlation Charts - Coins

slide-30
SLIDE 30

Correlation Charts - BTC v. Fiat

slide-31
SLIDE 31

So?

  • Looks like there is almost no correlation to fiat
  • Coins almost all move in lock-step
  • Implications?
slide-32
SLIDE 32

BTC Volume Events

slide-33
SLIDE 33

Network

slide-34
SLIDE 34

Visualizing Networks

  • Slightly complex with bitcoin
  • The Bitcoin graph:
  • Nodes: wallet addresses
  • Edges: Spends
slide-35
SLIDE 35

Visualizing Networks

  • Best practices contribute 1 or 2 nodes each transaction
  • In practice this seems to be 50%
slide-36
SLIDE 36

Degree Distributions

  • Seems to be power law:
slide-37
SLIDE 37

Ethereum

slide-38
SLIDE 38

Transaction Patterns

  • Fork-merge:
  • Large amount in wallet
  • Split into many smaller wallets
  • Finally after a long trip merged into single wallet
  • Binary tree-like structure:
  • Transaction + Change
  • Splitting your amount into 2
  • Long Chains
slide-39
SLIDE 39
slide-40
SLIDE 40

Insights From Degree

  • What about degree 1:
  • Likely money transferred to same individual
  • Large outdegree:
  • Possibly automated transaction
slide-41
SLIDE 41

GeoSpatial

slide-42
SLIDE 42

Hard Because

  • Many won’t expose an IP address
  • Many won’t respond to API calls that identify their address
  • Not very trustworthy
slide-43
SLIDE 43
slide-44
SLIDE 44
slide-45
SLIDE 45

Visit At

  • https://blockchaincourse.onai.com/node_viz/
slide-46
SLIDE 46

Questions?