green mining toward a less energe1c impact of
play

Green Mining: toward a less energe1c impact of - PowerPoint PPT Presentation

Green Mining: toward a less energe1c impact of cryptocurrencies Philippe Jacquet (Nokia Bell Labs) Bernard Mans (Macquarie University) Cryblock Infocom 2019


  1. Green ¡Mining: ¡toward ¡a ¡less ¡ energe1c ¡impact ¡of ¡ cryptocurrencies ¡ Philippe ¡Jacquet ¡(Nokia ¡Bell ¡Labs) ¡ Bernard ¡Mans ¡(Macquarie ¡University) ¡ Cryblock ¡Infocom ¡2019 ¡ April ¡29 ¡ Paris ¡

  2. Energy ¡wasted ¡by ¡Bitcoin ¡ • 40 ¡G ¡kWh/year ¡ ¡ • A ¡country ¡like ¡Greece ¡ • 6% ¡France ¡ • 0.25% ¡World ¡

  3. Proof ¡of ¡Work ¡ • Each ¡block ¡miner ¡must ¡find ¡a ¡hash ¡value ¡with ¡ 74 ¡ini1al ¡zeroes ¡out ¡of ¡256 ¡bits. ¡ Field ¡# ¡ value ¡ 1 ¡ Hash ¡of ¡previous ¡block ¡ 2 ¡ date ¡ 3 ¡ Transac1on ¡refs ¡ 4 ¡ nonce ¡ 5 ¡ Hash ¡value ¡ • Difficulty ¡is ¡adjusted ¡in ¡order ¡to ¡have ¡ ¡ – 10 ¡mn ¡inter-­‑block ¡1me ¡in ¡average ¡

  4. Evolu1on ¡of ¡difficulty ¡ • Change ¡every ¡2016 ¡blocks ¡(approx ¡2 ¡weeks) ¡

  5. Alterna1ve ¡to ¡PoW ¡ • The ¡block ¡mining ¡via ¡Inversed ¡leader ¡elec1on ¡

  6. Direct ¡leader ¡elec1on ¡ • n ¡ini1al ¡compe1tors ¡a ¡probability ¡p. ¡ – Eg ¡n=10 6 , ¡p=0.5 ¡ – At ¡each ¡step ¡survivors ¡survive ¡with ¡probability ¡p ¡ p ℓ – Process ¡stops ¡when ¡# ¡survivors=0 ¡ – leader(s) ¡is/are ¡the ¡last ¡survivor(s), ¡ ¡ n ¡ ℓ

  7. Reverse ¡leader ¡elec1on ¡ • Take ¡k ¡such ¡that ¡ p k n << 1 p k − ℓ – At ¡each ¡step ¡leaders ¡selected ¡with ¡proba ¡ – Process ¡stops ¡when ¡ ¡# ¡leaders>0 ¡ n ¡ 0 ¡ k ¡ ℓ

  8. Proper1es ¡of ¡reverse ¡leader ¡elec1on ¡ • For ¡n<p -­‑k =N ¡the ¡number ¡of ¡leaders ¡(block ¡ mined ¡per ¡elec1on) ¡M n ¡is ¡bounded ¡in ¡ distribu1on ¡ 1 E [ M n ] < min{ n , AN 1/ k }, A ≈ – ¡ ¡ log(1/ p ) – For ¡N=2 32 ¡and ¡k=16: ¡less ¡than ¡4 ¡ – For ¡n>N ¡ ¡ E [ M n ] > np • N ¡and ¡p ¡fixed ¡as ¡ini1al ¡parameters, ¡ ¡ – no ¡need ¡to ¡review ¡and ¡update ¡every ¡2016 ¡blocks ¡

  9. Green ¡mining ¡format ¡ • Regular ¡block ¡ #field ¡ value ¡ 1 ¡ Previous ¡block ¡hash ¡ 2 ¡ date ¡ 3 ¡ Transac1ons ¡ref ¡ 4 ¡ Next ¡block ¡call ¡value ¡ 5 ¡ Block ¡hash ¡ • Next ¡block ¡call ¡value ¡field ¡in ¡regular ¡block ¡ – It ¡replaces ¡nonce ¡field ¡ – is ¡fixed ¡by ¡protocol ¡to ¡be ¡2 256 /N ¡ – Next ¡regular ¡block ¡should ¡have ¡hash ¡value ¡smaller ¡ than ¡previous ¡block ¡call ¡value. ¡

  10. Empty ¡blocks ¡ • With ¡N=2 32 ¡the ¡difficulty ¡is ¡not ¡very ¡big ¡ – But ¡no ¡nonce ¡to ¡tune ¡ – The ¡hash ¡value ¡can ¡only ¡be ¡modified ¡by ¡modifying ¡ the ¡transac1on ¡references. ¡More ¡difficult! ¡ • Virtually ¡impossible ¡to ¡have ¡a ¡hash ¡value ¡ smaller ¡2 256 /N. ¡(or ¡take ¡N=2 64 ) ¡ – Aher ¡one ¡minute ¡an ¡empty ¡block ¡is ¡inserted ¡with ¡a ¡ call ¡value ¡higher ¡by ¡ ¡a ¡factor ¡1/p. ¡

  11. Empty ¡blocks ¡ #field ¡ Field ¡value ¡ 1 ¡ Hash ¡of ¡previous ¡block ¡ 2 ¡ date ¡ 3 ¡ Next ¡block ¡call ¡value ¡ 4 ¡ Block ¡hash ¡ If ¡no ¡regular ¡block ¡is ¡mined ¡aher ¡one ¡minute, ¡ ¡a ¡new ¡empty ¡block ¡is ¡mined ¡ ¡with ¡call ¡value ¡=previous ¡call ¡value/p ¡ The ¡process ¡restarts ¡aher ¡k ¡rounds ¡(call ¡value ¡reaches ¡2 256 -­‑1) ¡

  12. Empty ¡blocks ¡ #field ¡ Field ¡value ¡ 1 ¡ Hash ¡of ¡previous ¡block ¡ 2 ¡ date ¡ 3 ¡ 2 240 -­‑1 ¡ 2 256 -­‑1 ¡ 2 252 -­‑1 ¡ 2 248 -­‑1 ¡ 2 244 -­‑1 ¡ 2 224 -­‑1 ¡ 2 236 -­‑1 ¡ 2 232 -­‑1 ¡ 2 228 -­‑1 ¡ 4 ¡ Block ¡hash ¡ Last ¡call ¡value ¡releases ¡all ¡blocks ¡

  13. Empty ¡blocks ¡mining ¡ Y0 Y1 Y2 Y3 Y4 Y5 Date Date Date Date Date Date Transactions Nounce Nounce Transactions Transactions Nounce Call1 Call2 Call3 Call1 Call1 Call2 Hash Y1 Hash Y2 Hash Y3 Hash Y4 Hash Y5 Hash Y6 (Y4<Call3) (Y5<Call1) • Empty ¡block ¡mining ¡op1ons ¡ – Can ¡be ¡mined ¡by ¡a ¡central ¡en1ty ¡ – Can ¡be ¡mined ¡in ¡a ¡decentralized ¡mode ¡ • Filtered ¡by ¡the ¡block ¡dates ¡ ¡ – Implicit ¡empty ¡block ¡mining ¡ • Regular ¡blocks ¡filtered ¡by ¡hash ¡values ¡and ¡dates ¡

  14. Performance ¡analysis ¡ • Explicit ¡empty ¡block ¡mining ¡ • Theorem ¡[explicit ¡empty ¡blocks]: ¡ k E [ M n ] = np k + np k − ℓ ∑ ∏ (1 − p k − i ) n ℓ = 1 i < ℓ – Proof: ¡the ¡probability ¡to ¡reach ¡round ¡ ∏ ℓ is (1 − p k − i ) n i < ℓ • Lemma ¡ ¡ k ⎛ ⎞ ≤ 1 = O 1 np ℓ exp − np ℓ ∑ np k − ℓ ∏ ∑ ( ) (1 − p k − i ) n ⎟ = O ( N 1/ k ) ⎜ p p ⎝ ⎠ ℓ = 1 i < ℓ ℓ ∈ Z

  15. Performance ¡analysis ¡(con1nued) ¡ • Theorem ¡[implicit ¡empty ¡blocks]: ¡ k n − 1 E [ M n ] = np k + n ( p k − ℓ − p k − ℓ + 1 ) 1 − p k − ℓ + 1 ∑ ( ) ℓ = 1 n – Proof ¡the ¡probability ¡to ¡reach ¡round ¡ ℓ is 1- p k − ℓ + 1 ( )

  16. Performance ¡analysis ¡(con1nued) ¡ • Theorem ¡distribu1on ¡of ¡number ¡of ¡mined ¡ blocks ¡[explicit ¡empty ¡blocks]: ¡ ] = (1 + p k ( u − 1)) n − (1 − p k ) n [ E u M n (1 + p k − ℓ ( u − 1)) n − (1 − p k − ℓ ) n ∑ ( ) ∏ (1 − p k − j ) n + ℓ < k j < ℓ ∏ + u n (1 − p k − j ) n j < k

  17. Performance ¡analysis ¡(end) ¡ • Simula1on ¡of ¡green ¡mining ¡

  18. Conclusion ¡ • The ¡Energy ¡waste ¡due ¡to ¡proof ¡of ¡work ¡is ¡not ¡ sustainable ¡in ¡cryptocurrencies ¡in ¡the ¡near ¡ future. ¡ • A ¡reversed ¡leader ¡elec1on ¡can ¡replace ¡the ¡ burden ¡of ¡the ¡PoW ¡for ¡mining ¡difficulty ¡ • Highly ¡dynamic, ¡work ¡for ¡any ¡mining ¡ popula1on ¡up ¡to ¡N ¡(arbitrary ¡large) ¡ • No ¡need ¡of ¡parameter ¡update ¡

  19. Perspec1ve ¡ • How ¡resilient ¡is ¡the ¡scheme ¡against ¡amack ¡ • Eg ¡51% ¡amack. ¡ ¡ – block ¡nursing ¡vs ¡PoW ¡farming ¡ – Preliminary ¡analysis ¡indicates ¡ • ¡to ¡get ¡ ¡ ¡ ¡ ¡advantage ¡one ¡should ¡need ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡more ¡ ε 2 ε log(1/ p ) resources ¡than ¡the ¡adversary ¡ ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend