SlideShare a Scribd company logo
1 of 16
by
Topalidis Georgios
under the supervision of
Professor Giaglis George
10 May 2018
University of Nicosia
School of Business
MSc Project - Thesis: Implementing electronic lotteries by
using
hash values of Bitcoin blocks as source of
entropy
Purpose of Project - Thesis
The building of an application,
implementing electronic draws with a
decentralized way
The application is using the hash values
of Bitcoin blocks as a source of
randomness
Contents
 What is entropy?
 Capturing entropy from Bitcoin and PoW algorithm
 The Draw algorithm
 Analysis of the application scheme
 Testing Results
 Proof of Existence –Bitcoin is not just a currency
 Potentiality of using the application
 Sources of randomness
 Limitations and future work
 Demonstration of the application
What is entropy?
 Entropy refers to disorder or uncertainty
 The less the possibility of an event to happen creates more
information about its fulfillment
 A more probable event is less random(informative)
SHANNON ENTROPY: H(x) = E[I(x)]=E[-ln(P(x))]
Information entropy is the average amount of information
conveyed by an event, when considering all possible outcomes
Capturing entropy from Bitcoin and PoW
algorithm(1)
 The process of finding a solution for the PoW
algorithm is related with randomness
 Every 10 minutes, miners trying to solve the
inequation:
H(nonce || Prev_hash || tx ||…|| tx)< target
nonce: the random number
Capturing entropy from Bitcoin and PoW
algorithm(2)
 The probability of solving the PoW algorithm is:
P=0.00000000000000000000005753 (8/5/2018)
 Our application uses the blockHash (solution of
the PoW) with the form of SHA256(blockHash )
as a seed, for importing randomness to the draw
process
The Draw algorithm
Participant 1
• Bob
• Bob’s ID card number
Participant 2
• Mary
• Mary’s ID card number
Participant 3
• Paul
• Paul’s ID card number
identifier of Bob
+ seed identifier of
Mary
identifier of
Paul
Identifier = SHA256(seed
Analysis of the application scheme(1)
1
Hash blocks as
input to the
algorithm
Participants
Bob
Mary
.
.
Paul
2
3
4
1)Fetching data from Blockchain
2)Import unique data from participants
3)Run the lottery
4)Store the results to the Blockchain with
OP_RETURN transaction
Analysis of the application scheme(2)
Winner is the participant whose
the outcome of :
SHA256(SHA256(blockhash )||
ticket)
seed
is the smallest among all the
other
Testing Results
A/A Number of
Participants
Average Time in
Nanoseconds after
running the test cases 10
times
Average Time in seconds
after running the test
cases 10 times
1 100 18040702.9 0.0180407029
2 1000 38368960.7 0.0383689607
3 10000 1829125543 1.829125543
4 100000 69455143486 69.455143486
The attempt for running the algorithm with 1000000 participants was not taken into
consideration because the executional time of the algorithm in this case was high and
as a result could not simulate a realistic executional time of an electronic draw or
contest.
Proof of Existence –Bitcoin is not just a
currency
The application
and the algorithm
itself ensure:
Decentralizatio
n
(No central
authority)
Security
(Randomnes
s is backed
by NIST
recommendat
ions, usage
of hash
functions)
Transparenc
y
(certify that
data existed at a
certain time –
it’s a public
ledger
Verifiability
(auto-
verifiable with
Blockchain)
Potentiality of using the application
 Companies(Marketing campaigns, User acquisition,
Loyalty bonus)
 Governments (Tax avoidance)
 Institutions (Micro-earnings)
 Organizations (Gamification, Motivate employs)
Sources of randomness
 Financial Data (Stock
market prices)
 Bitcoin
 Other Cryptocurrencies
 Flight Landings
 Weather Conditions
 GDP, Unemployment Rates
Big and Open
data
Verifiable
+
Frequent
Limitations and future work
Improvement
of the algorithm
in order to run
for more than
100000
participants
effectively
Solve the
problem of
storing the
results of the
draw by using
the
OP_RETURN
More friendly
User Interface
in the
application
Demonstration of the application
Running a lottery with 100 participants, video
demonstration…
Thank you

More Related Content

Similar to Msc_topalidis_georgios_project_presentation

Real-time Classification of Malicious URLs on Twitter using Machine Activity ...
Real-time Classification of Malicious URLs on Twitter using Machine Activity ...Real-time Classification of Malicious URLs on Twitter using Machine Activity ...
Real-time Classification of Malicious URLs on Twitter using Machine Activity ...
Pete Burnap
 
Fraud Detection with Cost-Sensitive Predictive Analytics
Fraud Detection with Cost-Sensitive Predictive AnalyticsFraud Detection with Cost-Sensitive Predictive Analytics
Fraud Detection with Cost-Sensitive Predictive Analytics
Alejandro Correa Bahnsen, PhD
 
Term Paper Presentation
Term Paper PresentationTerm Paper Presentation
Term Paper Presentation
Shubham Singh
 

Similar to Msc_topalidis_georgios_project_presentation (20)

Disruptive Future of Blockchain for Brasil
Disruptive Future of Blockchain for Brasil Disruptive Future of Blockchain for Brasil
Disruptive Future of Blockchain for Brasil
 
Performance Evaluation of the Bingo Electronic Voting Protocol
Performance Evaluation of the Bingo Electronic Voting ProtocolPerformance Evaluation of the Bingo Electronic Voting Protocol
Performance Evaluation of the Bingo Electronic Voting Protocol
 
N0172189102
N0172189102N0172189102
N0172189102
 
2 dc meet new
2 dc meet new2 dc meet new
2 dc meet new
 
Social networks protection against fake profiles and social bots attacks
Social networks protection against  fake profiles and social bots attacksSocial networks protection against  fake profiles and social bots attacks
Social networks protection against fake profiles and social bots attacks
 
Real-time Classification of Malicious URLs on Twitter using Machine Activity ...
Real-time Classification of Malicious URLs on Twitter using Machine Activity ...Real-time Classification of Malicious URLs on Twitter using Machine Activity ...
Real-time Classification of Malicious URLs on Twitter using Machine Activity ...
 
Braintalk cuso nm
Braintalk cuso nmBraintalk cuso nm
Braintalk cuso nm
 
Security for automation in Internet of Things by using one time password
Security for automation in Internet of Things by using one time passwordSecurity for automation in Internet of Things by using one time password
Security for automation in Internet of Things by using one time password
 
Large scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithmLarge scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithm
 
Social Networks Protection against Fake Profiles and Social Bots Attacks
Social Networks Protection against Fake Profiles and Social Bots AttacksSocial Networks Protection against Fake Profiles and Social Bots Attacks
Social Networks Protection against Fake Profiles and Social Bots Attacks
 
O Bitcoin Where Art Thou? An Introduction to Cryptocurrency Analytics
O Bitcoin Where Art Thou? An Introduction to Cryptocurrency AnalyticsO Bitcoin Where Art Thou? An Introduction to Cryptocurrency Analytics
O Bitcoin Where Art Thou? An Introduction to Cryptocurrency Analytics
 
Data Science: De la Matemática a la Práctica
Data Science: De la Matemática a la PrácticaData Science: De la Matemática a la Práctica
Data Science: De la Matemática a la Práctica
 
Data Science: De la Matemática a la Práctica
Data Science: De la Matemática a la PrácticaData Science: De la Matemática a la Práctica
Data Science: De la Matemática a la Práctica
 
Fraud Detection with Cost-Sensitive Predictive Analytics
Fraud Detection with Cost-Sensitive Predictive AnalyticsFraud Detection with Cost-Sensitive Predictive Analytics
Fraud Detection with Cost-Sensitive Predictive Analytics
 
Modern Data Science
Modern Data ScienceModern Data Science
Modern Data Science
 
Chaotic systems with pseudorandom number generate to protect the transmitted...
Chaotic systems with pseudorandom number generate to  protect the transmitted...Chaotic systems with pseudorandom number generate to  protect the transmitted...
Chaotic systems with pseudorandom number generate to protect the transmitted...
 
Synopsis viva presentation
Synopsis viva presentationSynopsis viva presentation
Synopsis viva presentation
 
Big Data and IOT
Big Data and IOTBig Data and IOT
Big Data and IOT
 
Term Paper Presentation
Term Paper PresentationTerm Paper Presentation
Term Paper Presentation
 
Comparative analysis of efficiency of fibonacci random number generator algor...
Comparative analysis of efficiency of fibonacci random number generator algor...Comparative analysis of efficiency of fibonacci random number generator algor...
Comparative analysis of efficiency of fibonacci random number generator algor...
 

Recently uploaded

Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Recently uploaded (20)

Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 

Msc_topalidis_georgios_project_presentation

  • 1. by Topalidis Georgios under the supervision of Professor Giaglis George 10 May 2018 University of Nicosia School of Business MSc Project - Thesis: Implementing electronic lotteries by using hash values of Bitcoin blocks as source of entropy
  • 2. Purpose of Project - Thesis The building of an application, implementing electronic draws with a decentralized way The application is using the hash values of Bitcoin blocks as a source of randomness
  • 3. Contents  What is entropy?  Capturing entropy from Bitcoin and PoW algorithm  The Draw algorithm  Analysis of the application scheme  Testing Results  Proof of Existence –Bitcoin is not just a currency  Potentiality of using the application  Sources of randomness  Limitations and future work  Demonstration of the application
  • 4. What is entropy?  Entropy refers to disorder or uncertainty  The less the possibility of an event to happen creates more information about its fulfillment  A more probable event is less random(informative) SHANNON ENTROPY: H(x) = E[I(x)]=E[-ln(P(x))] Information entropy is the average amount of information conveyed by an event, when considering all possible outcomes
  • 5. Capturing entropy from Bitcoin and PoW algorithm(1)  The process of finding a solution for the PoW algorithm is related with randomness  Every 10 minutes, miners trying to solve the inequation: H(nonce || Prev_hash || tx ||…|| tx)< target nonce: the random number
  • 6. Capturing entropy from Bitcoin and PoW algorithm(2)  The probability of solving the PoW algorithm is: P=0.00000000000000000000005753 (8/5/2018)  Our application uses the blockHash (solution of the PoW) with the form of SHA256(blockHash ) as a seed, for importing randomness to the draw process
  • 7. The Draw algorithm Participant 1 • Bob • Bob’s ID card number Participant 2 • Mary • Mary’s ID card number Participant 3 • Paul • Paul’s ID card number identifier of Bob + seed identifier of Mary identifier of Paul Identifier = SHA256(seed
  • 8. Analysis of the application scheme(1) 1 Hash blocks as input to the algorithm Participants Bob Mary . . Paul 2 3 4 1)Fetching data from Blockchain 2)Import unique data from participants 3)Run the lottery 4)Store the results to the Blockchain with OP_RETURN transaction
  • 9. Analysis of the application scheme(2) Winner is the participant whose the outcome of : SHA256(SHA256(blockhash )|| ticket) seed is the smallest among all the other
  • 10. Testing Results A/A Number of Participants Average Time in Nanoseconds after running the test cases 10 times Average Time in seconds after running the test cases 10 times 1 100 18040702.9 0.0180407029 2 1000 38368960.7 0.0383689607 3 10000 1829125543 1.829125543 4 100000 69455143486 69.455143486 The attempt for running the algorithm with 1000000 participants was not taken into consideration because the executional time of the algorithm in this case was high and as a result could not simulate a realistic executional time of an electronic draw or contest.
  • 11. Proof of Existence –Bitcoin is not just a currency The application and the algorithm itself ensure: Decentralizatio n (No central authority) Security (Randomnes s is backed by NIST recommendat ions, usage of hash functions) Transparenc y (certify that data existed at a certain time – it’s a public ledger Verifiability (auto- verifiable with Blockchain)
  • 12. Potentiality of using the application  Companies(Marketing campaigns, User acquisition, Loyalty bonus)  Governments (Tax avoidance)  Institutions (Micro-earnings)  Organizations (Gamification, Motivate employs)
  • 13. Sources of randomness  Financial Data (Stock market prices)  Bitcoin  Other Cryptocurrencies  Flight Landings  Weather Conditions  GDP, Unemployment Rates Big and Open data Verifiable + Frequent
  • 14. Limitations and future work Improvement of the algorithm in order to run for more than 100000 participants effectively Solve the problem of storing the results of the draw by using the OP_RETURN More friendly User Interface in the application
  • 15. Demonstration of the application Running a lottery with 100 participants, video demonstration…