Probabilistic Smart Contracts:
Secure Randomness on the Blockchain
Krishnendu Chatterjee*, Amir Goharshady*, Arash Pourdamghani** *IST Austria, **Sharif University of Technology
the Blockchain Krishnendu Chatterjee*, Amir Goharshady *, Arash - - PowerPoint PPT Presentation
Probabilistic Smart Contracts: Secure Randomness on the Blockchain Krishnendu Chatterjee*, Amir Goharshady *, Arash Pourdamghani** *IST Austria, **Sharif University of Technology Random Numbers on the Blockchain Current programmable
Probabilistic Smart Contracts:
Krishnendu Chatterjee*, Amir Goharshady*, Arash Pourdamghani** *IST Austria, **Sharif University of Technology
Random Numbers
All names, characters, businesses, places, events and incidents portrayed in this talk are either the products of the author’s imagination or used in a fictitious manner. Any resemblance to actual persons, living or dead, or actual events is purely
Do not sue me,
The Lottery Story
a winner.
puts it back in the drum, and rolls it again.
Do not sue me,
The Lottery Story
No No-red edra raw w rule le: Red edrawin awing g is chea eating! ting! Ed shoul uld not be a able e to chang nge e the res result lts. s. Do not sue me,
The Lottery Story
No No-ce centraliza ntralization tion rule le: Cen entra raliza lization tion is chea eating ting! No cen entra ral l autho horit rity y (i (includ luding ing the e lotter ery y organiz nizer ers) s) should uld make o e or roll ll the e drums. s. Do not sue me,
The Lottery Story
Co Concurr urrenc ency y rule: e: Ever eryo yone ne should uld draw at the e same e time! e! (o (or at lea east t bef efore e knowing ing othe her r draws) s)
The Lottery Story
Pen enalty ty rule: e: Ther ere e should uld be a e a p pen enalty lty for not announci ncing ng the e draw. The e pen enalty lty shou
ld be a e at lea east st as big as the e lotter ery y prize ize itsel elf.
The Lottery Story
Rule e of 1: Even en if one e particip ticipan ant t is gen ener eratin ating g unifo formly rmly random
ws, the e whole
esult lt should uld be e uniformly
The Lottery Story
Open ennes ess: s: Dr Drawin wing g should uld be o e open en to to ev ever eryo yone. e. Let’s do it on the blockchain!
The Lottery Story
Incen entiv tivization ization: Each partici ticipant nt shoul uld be paid for their ir input ut.
The Lottery Story
receives a reward for providing random numbers.
Incen entiv tivization ization: Each partici ticipant nt shoul uld be paid for their ir input ut. . It should uld also
e in thei eir r bes est intere erest st to provid vide e unifo formly rmly rando dom inputs. ts.
More on Incentives
What if the players can collude?
that all of them profit. What if the players can share rewards?
Quasi-str trong
Nash Equilibrium Equilibrium: No set of players can collude to change strategies so that their total payoff increases.
Previous Approaches
(Ed is is the miner er)
(Ed is is th the oracle cle own wner er)
(No incen entiv tiviza ization tion for for rando dom inputs) ts)
The generated random bit is the XOR of all submitted bits. Rewards for each participant who reveals the correct nonce. Confiscation of deposit for others.
Our Approach
equilibrium
The Game
player i is: where
i j i j i j
1
i n i j i j
The Overall Protocol
generating random bits.
1. Another contract/node requests a random bit and sets the penalty and the reward.
' 1 : ( ) /
p p
r n u s
Guarantees
Secure Randomness on the Blockchain