Top Banner
Cryptocurrency Café UVa cs4501 Spring 2015 David Evans Class 23: Blooming Sidechains!
31
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Blooming Sidechains!

Cryptocurrency CaféUVa cs4501 Spring 2015David Evans

Class 23:Blooming

Sidechains!

Page 2: Blooming Sidechains!

Plan

• Bloom Filters

– Design and Analysis

– Use in Bitcoin

• Merged Mining

• Sidechains

1

Thursday, 6pm Commerce School 223“Entrepreneurial and Career Ventures in the world of Digital Currency” Panel

Friday, 10:45am Rice 242Suman Jana, “Rise of the Planet of the Apps: Security and Privacy in the Age of Bad Code”

Project Presentations will be April 20, 22 and 27.

Page 4: Blooming Sidechains!

3

Page 5: Blooming Sidechains!

SPV Nodes

4

Simplified Payment Verification

SPV Wallet

Full Node

filter

blocks matching filter

Page 6: Blooming Sidechains!

5

Page 7: Blooming Sidechains!

6

Page 8: Blooming Sidechains!

Bloom Filters

7

Page 9: Blooming Sidechains!

8

Page 10: Blooming Sidechains!

Conventional Hash Table

9

Store collection of N b-bit elements, using k > N cells.

H is pseudorandom functionH(x) [0, k)

Page 11: Blooming Sidechains!

Conventional Hash Table

10

Store collection of N b-bit elements, using k > N cells.

H is pseudorandom functionH(x) [0, k)

Page 12: Blooming Sidechains!

11

Page 13: Blooming Sidechains!

12

How does Bloom’s application compare to use by bitcoin SPV nodes?

Page 14: Blooming Sidechains!

Bloom Filter Design

13

Page 15: Blooming Sidechains!

14

Page 16: Blooming Sidechains!

15

Page 17: Blooming Sidechains!

16

Probability of false match:

(1 – (1 – 1/m)kn)k

m: bits in arrayk: number of hashesn: number of elements

Page 18: Blooming Sidechains!

17

Probability of false match:

(1 – (1 – 1/m)kn)k

m: bits in arrayk: number of hashesn: number of elements

Page 19: Blooming Sidechains!

18

Do Bloom filters really provide privacy?

Page 20: Blooming Sidechains!

Merged Mining

19

Page 21: Blooming Sidechains!

20

Pointcoin 0 Pointcoin 1Pointcoin

6764…

Bitcoin 0 Bitcoin 1Bitcoin351247

Difficulty: 8,324,713Hash rate: ~0 TH/s

Difficulty: 49,446,390,688Hash rate: 310K TH/s

Should PointCoin Pizza be worried?

Page 22: Blooming Sidechains!

21

http://blockexplorer.bitcoin-class.org/

Page 23: Blooming Sidechains!

SHA-256 Proof-of-Work Cryptocurrency

22

Page 24: Blooming Sidechains!

Merged Mining

23

Goal: Enable using same hashing power to mine both Bitcoin and Namecoin (with different difficulty)

Page 25: Blooming Sidechains!

24

Page 26: Blooming Sidechains!

25

https://explorer.namecoin.info/blocks/block_225529.txt

Page 28: Blooming Sidechains!

27

Pointcoin 0 Pointcoin 1Pointcoin

6764…

Bitcoin 0 Bitcoin 1Bitcoin351247

Difficulty: 8,324,713Hash rate: ~0 TH/s

Difficulty: 49,446,390,688Hash rate: 310K TH/s

Namecoin 0 Namecoin 1Namecoin

225529…

Difficulty: 16,527,985,062Hash rate: 110K TH/s

Page 29: Blooming Sidechains!

Namecoin Bug

28

Page 30: Blooming Sidechains!

29https://github.com/namecoin/namecoin/commit/d70d01ff77310d3755891cb43cb2700b553019f4

Page 31: Blooming Sidechains!

Charge

Projects should be making good progress now!

30

Thursday, 6pm Commerce School 223“Entrepreneurial and Career Ventures in the world of Digital Currency” Panel

Friday, 10:45am Rice 242Suman Jana, “Rise of the Planet of the Apps: Security and Privacy in the Age of Bad Code”

Project Presentations will be April 20, 22 and 27.