"commitment scheme" lighting talk

9
Commitment scheme lighting talk Wojciech Langiewicz @ DRUG 62 1

Upload: wojciech-langiewicz

Post on 16-Jul-2015

325 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: "Commitment scheme" lighting talk

Commitment scheme lighting talk

Wojciech Langiewicz @ DRUG 62

1

Page 2: "Commitment scheme" lighting talk

How we play games?

Trust between playersTrusted third party to settle disputesGame master to settle disputesetc...

2

Page 3: "Commitment scheme" lighting talk

For example coin flipping

1. Alice makes a decision and announces it: heads or tails

2. Bob flips the coin and announces the result3. If Alice is correct, she wins, otherwise Bob

wins

3

Page 4: "Commitment scheme" lighting talk

How to play games without trust?

Commitment scheme!

4

Page 5: "Commitment scheme" lighting talk

Coin flipping in real live with commitment scheme

1. Alice makes a decision and writes it down on a piece of paper: heads or tails

2. Alice puts a piece of paper into an envelope and gives it to Bob

3. Bob flips the coin and announces the result4. Bob opens the envelope and checks who

won5

Page 6: "Commitment scheme" lighting talk

Coin flipping over the internet

1. Alice:a. SHA256(“Alice calls heads”) ->

70d41676e5cf4f8a6f23452ee6797da3897139abe3c20523b889acb1b0b025b7

2. Alice announces the hash, so Bob can see it3. Bob flips a coin and shows the result4. Alice reveals her commitment: “Alice calls

heads”5. Bob calculates SHA256 and checks if it

matches first hash 6

Page 7: "Commitment scheme" lighting talk

Results

● Bob cannot use fake coin to skew the results● Bob still has to give you your winnings● But if he doesn’t you have a proof that he

cheated● Alice might not reveal her commitment after

the coin is flipped

7

Page 8: "Commitment scheme" lighting talk

Other applications

● zero knowledge proofs● online voting● secret sharing

8

Page 9: "Commitment scheme" lighting talk

Reading morehttp://en.wikipedia.org/wiki/Commitment_scheme“Cyberdice: peer-to-peer gambling in the presence of cheaters” Frank Stajano and Richard Clayton

9