Ecco copia degli hash ricevuti dallo smart contract (103 in tutto).

Entro le 13:00 sono stato contattato da 2 persone che hanno dichiarato di aver vinto e mi hanno fornito la loro mail, 

gli hash verificati dei vincitori sono quelli in rosso.

7578ed04868f1d290c85d4ad7ea155c2ac7b4174ac9f2d319a98617a3350a40a
6cb801ca6dedffb6de0088fc4614930c6027059e8e2562832526e48a81eb3e1f
aa055a131929214e935003a7937b4d0996ccf65f7baff1dd1d4608928cba4b4e
aa055a131929214e935003a7937b4d0996ccf65f7baff1dd1d4608928cba4b4e
aa055a131929214e935003a7937b4d0996ccf65f7baff1dd1d4608928cba4b4e
3ea8452641684c30676a6f6dccb9c1d02fd01d43a2634b961078a0ccf7b87407
0d29cf8401e4400d0a04184704768418e0a53385fc2df95d7814b27bf0be821f
0d29cf8401e4400d0a04184704768418e0a53385fc2df95d7814b27bf0be821f
0d29cf8401e4400d0a04184704768418e0a53385fc2df95d7814b27bf0be821f
0d29cf8401e4400d0a04184704768418e0a53385fc2df95d7814b27bf0be821f
63172d9d3c7c17150727f963cdacff8d507f01ca2ddb4bdf90380a7c573b3813
b94093fa4c08e78b47c696fe6dfebea147f2b0fc67c687b75d13ab5eca0ff2a2
b94093fa4c08e78b47c696fe6dfebea147f2b0fc67c687b75d13ab5eca0ff2a2
b94093fa4c08e78b47c696fe6dfebea147f2b0fc67c687b75d13ab5eca0ff2a2
b94093fa4c08e78b47c696fe6dfebea147f2b0fc67c687b75d13ab5eca0ff2a2
b94093fa4c08e78b47c696fe6dfebea147f2b0fc67c687b75d13ab5eca0ff2a2
b94093fa4c08e78b47c696fe6dfebea147f2b0fc67c687b75d13ab5eca0ff2a2
59a1ef2d582bab7d117ddc6768c5ca1c2b432a3d56d934c9a1a50d3829312dfa
d1f7a1acc3574901854c268ff7503c18f934d23a46fa925590b245744181452f
2a54b57ed2bd68ead349a2aaa2d9056a6b141239d6cb9151960e28ed56c34dcc
17287605c3378bb3b5c50b379efcf2194ca81adde5490d5734c7c8df51420994
7578ed04868f1d290c85d4ad7ea155c2ac7b4174ac9f2d319a98617a3350a40a
7578ed04868f1d290c85d4ad7ea155c2ac7b4174ac9f2d319a98617a3350a40a
cb640c9b7e94125b065b688be251aa31a6f521885707618122c9cef4cc08c5fb
5b1e2b2758011553ed6d9ffc7f1c691ec78f1b183681e34b9fb46c93c23bff58
5b1e2b2758011553ed6d9ffc7f1c691ec78f1b183681e34b9fb46c93c23bff58
4d990d7458e70ad4cd0a1dcb10aaa4036de8f89374ccadd52da660bce6b74c41
1e1442a2ef13edec3bc742860569e12ab93e3851cd38a56600261df904eaa6b0
79bddf8bca2926616778cd3334cb8f80b8125c1469bdffe25a9f17c3bc352483
79bddf8bca2926616778cd3334cb8f80b8125c1469bdffe25a9f17c3bc352483
aa80a842c8ae67aa49a87d028e01577c183ee9603defbed332962521511d2e48
7b9f750f94133c07274f1d7fde40edcad5aaa4d3f0865b294467e28357a126b1
efdcac5981b6d3c49f7ae811b36882fd2dc0ac9c688003c406ee8fe78c858a4d
efdcac5981b6d3c49f7ae811b36882fd2dc0ac9c688003c406ee8fe78c858a4d
7578ed04868f1d290c85d4ad7ea155c2ac7b4174ac9f2d319a98617a3350a40a
114375253a03a8f76434622f2c09fc3ef5555b157cd218e4b82e29348ace3973
2e123500b1d1226a97e94ad6461fbe9bd377b09830144eb05cf38042c5df544c
1d4d5b04316b142ccacd69452b3d1befdeedb0c9e76543f3268f485927dabc6f
1d4d5b04316b142ccacd69452b3d1befdeedb0c9e76543f3268f485927dabc6f
2a0c9fe0553af3c6496cc85f470c6b618be7a889d2d1b543b74b829f9909038c
2a0c9fe0553af3c6496cc85f470c6b618be7a889d2d1b543b74b829f9909038c
2a0c9fe0553af3c6496cc85f470c6b618be7a889d2d1b543b74b829f9909038c
2a0c9fe0553af3c6496cc85f470c6b618be7a889d2d1b543b74b829f9909038c
2a0c9fe0553af3c6496cc85f470c6b618be7a889d2d1b543b74b829f9909038c
2a0c9fe0553af3c6496cc85f470c6b618be7a889d2d1b543b74b829f9909038c
2a0c9fe0553af3c6496cc85f470c6b618be7a889d2d1b543b74b829f9909038c
2a0c9fe0553af3c6496cc85f470c6b618be7a889d2d1b543b74b829f9909038c
2a0c9fe0553af3c6496cc85f470c6b618be7a889d2d1b543b74b829f9909038c
3ed6ca180e998ae99aefff6337d6f6b2f0262ee70d63378a2014bb84442abe84
2a0c9fe0553af3c6496cc85f470c6b618be7a889d2d1b543b74b829f9909038c
aa1af65d42ff15d59f8e0fa850716029d7fb24c3c18b4e3d8f4c09cf7c79381e
28ac76548c3294fa3e7e3d9396a9b0d23f1c918ead8e4f08b61de9a461d05afc
319f946a44ee5e40e52ea3ef6047be2521c914b1985bcc3d98e990857a08d06a
d7e6e24d939b8a6ca5dce7c488b52407cbcdfc2769ce89c0001c442454fd0168
8f3e5310f6e2e6aea543608bab40c8aa4c460dd5b234e5afb7078d2916310e67
8f3e5310f6e2e6aea543608bab40c8aa4c460dd5b234e5afb7078d2916310e67
8f3e5310f6e2e6aea543608bab40c8aa4c460dd5b234e5afb7078d2916310e67
124dc806c98266b54f65da69c814190f96e87cb706b0663d859a9657d75e316d
f14e1c99cdb80d8e7233ca68c2f2c7cbf782b166bd07e8f80a76332ba674da93
9901db9934815ee11f3348568bead5a44edb4707d33a36dc101127eb7174587e
4e680de2b30c6dbb76f4ebc94b1ddf9a1142543805fba163177985983654d059
41082e29eca3434cfb8657e0a52cf07c8c0fe80a5af8319eb513c400b4f4fd83
cc6b96706f36d719df2cff7200fa9ea8e638d2fa0c45b062ab656d1dec345664
4a6ea69ab4ab6617b94ce3ec19e8f69d4428d8216498990b515138dda67abd54
4a6ea69ab4ab6617b94ce3ec19e8f69d4428d8216498990b515138dda67abd54
504977e094b5904bca66058903d984d12b40fec7cecd6b172e6b957f8d5bf144
4b049561c02f8a7303c50c6c883de9e7e34fad3eaa0541b3acc34e35f5258db7
cc11254f0352c363973a93e4917ee038ed8b0406691bbcc4c9c15470e83596ba
b76d47b2de8268647bf3e2a14bfcc44266a0dc6a81732565590941daf3a456dd
f83034ed6125287b5975e737c53b4f48d65754603fd931664c828be1e2b3ab57
cc11254f0352c363973a93e4917ee038ed8b0406691bbcc4c9c15470e83596ba
d5227383ecdf112f0bf2d555d61f450e6833214b865248d24cf140f698f3cec8
cdb93741fcbe69d114f7a942e510ff660f643d6806e26d3de13cedd6527cd313
2dff1a92dc4db620e8d3557773996454a6fb2cd682b96bffce2c8a15a2d799d7
2dff1a92dc4db620e8d3557773996454a6fb2cd682b96bffce2c8a15a2d799d7
2dff1a92dc4db620e8d3557773996454a6fb2cd682b96bffce2c8a15a2d799d7
311f68b6489ce6d9d3c5f23244fd40ec258b11897233409982caa92a920762ff
63ca4e39d05f6d8515aad8477bd49163ccc46dd81972b912718a460a83316257
63ca4e39d05f6d8515aad8477bd49163ccc46dd81972b912718a460a83316257
b2e1ad32f220a62f611245ed42388443f7d6bc3def1efd7ca25dfdce335d4ee0
57d1ab8f370542ceebae03e3149c1d2e962f5901b701a691d1e75a1c8b677c6b
67b275b4eabfe717d8caca0cf933e021c5ee0c098ee0a9f78f6bc9ab5dbaa516
57d1ab8f370542ceebae03e3149c1d2e962f5901b701a691d1e75a1c8b677c6b
57d1ab8f370542ceebae03e3149c1d2e962f5901b701a691d1e75a1c8b677c6b
57d1ab8f370542ceebae03e3149c1d2e962f5901b701a691d1e75a1c8b677c6b
10336940361fb5bb84d08adc5a571a57573f058da195e5bdc5776563180c2096
9149d34e75ca944667414558023e5587e95d77beb2413129155e6bb128c3c178
9149d34e75ca944667414558023e5587e95d77beb2413129155e6bb128c3c178
b45350def8f097a29fea7b00a6087312fa20f1cdc05c5980821869a3509bd87f
9149d34e75ca944667414558023e5587e95d77beb2413129155e6bb128c3c178
658cfa2a2c3638341ddfcb2a406de93fa8f8a59aaa12f1417da40fcd79d9b59b
b9002b196fce553982e3ad896bf8374455cea8c321fe351bfe9498d75a6e38b2
b9002b196fce553982e3ad896bf8374455cea8c321fe351bfe9498d75a6e38b2
b9002b196fce553982e3ad896bf8374455cea8c321fe351bfe9498d75a6e38b2
b9002b196fce553982e3ad896bf8374455cea8c321fe351bfe9498d75a6e38b2
b45350def8f097a29fea7b00a6087312fa20f1cdc05c5980821869a3509bd87f
e7690b68fcccb8f15ad52dddaf2e8d2211f1e94541036b373d4c7eeff261bd50
63ca4e39d05f6d8515aad8477bd49163ccc46dd81972b912718a460a83316257
63ca4e39d05f6d8515aad8477bd49163ccc46dd81972b912718a460a83316257
a776626407d32ebf55521e077ad5469e59f774c99150a6972e1d814b17bf9b36
b0ed28bf3e1b346140cc2104127037d7f4da0800e956562c5243b2c2f196a86e
0f9d1075acf6e2f827063b872e1314bdb15b1034e46801ee88cb2b80026f116c
0f9d1075acf6e2f827063b872e1314bdb15b1034e46801ee88cb2b80026f116c
57ee5e0bd323a31b2e4736a142e03e3062d44f0bc7c05288830f7f8594bfb495

 

alcuni hanno inviato il voto più volte con lo stesso hash ma questa cosa √® indifferente ai fini del sorteggio.

Dopo avere verificato che i candidati vincitori hanno effettivamente votato il film n.9 e nessun altro film, si procede al sorteggio del vincitore.

Come? ovviamente mediante uno smart contract su ethereum, seguendo come ispirazione l'articolo

https://medium.com/@promentol/lottery-smart-contract-can-we-generate-random-numbers-in-solidity-4f586a152b27

La fonte di casualità è data proprio dagli hash dei vincitori (che io non potevo conoscere a priori) insieme all'ordine di arrivo (sconosciuto anche ai vincitori).

Nell'algoritmo quindi vengono concatenati i byte degli hash in ordine di invio, viene calcolato l'hash e si ottiene un numero di cui si calcola il resto della divisione per il numero dei candidati vincitori (2).

Quindi abbiamo un numero da 0 a 1 che indicherà il vincitore.

Il contratto è pubblicato qui: 

https://rinkeby.etherscan.io/address/0x7bFe460CCaa1aD686231D054010CDC1996177af7

 

Il risultato del vincitore è : 1 ovvero il secondo hash in rosso : 8f3e5310f6e2e6aea543608bab40c8aa4c460dd5b234e5afb7078d2916310e67 con lo hash transazione: 0xbc86ef94088fbdd4002d8559e645934ab70df7be09812ecf8df52f18656260fe

Il premio è stato riscattato. A breve pubblicheremo la prova crittografica.
Grazie a tutti per aver partecipato!!!!
Per qualunque osservazione o richiesta potete contattarmi alla mail pronosticooscar2020@gmail.com