35
Panoramica su Alcune Attività di Ricerca in Cifrischain Cifrischain 2018 Roma, 17 Dicembre 2018 Prof. Daniele Venturi Dipartimento di Informatica

Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Panoramica su Alcune Attività di Ricerca in Cifrischain

Cifrischain 2018

Roma, 17 Dicembre 2018

Prof. Daniele VenturiDipartimento di Informatica

Page 2: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Chi di noi fa Ricerca su Blockchain?

• Contributi raccolti:

2 Cifrischain 2018 – Prof. Daniele Venturi

Dipartimento di Informatica

Dipartimento di Ingegneria dell'Informazione ed Elettrica e Matematica Applicata

Dipartimento di MatematicaDipartimento di Matematica e di Informatica

Page 3: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

3 Cifrischain 2018 – Prof. Daniele Venturi

Chiavi Segrete Deboli in Bitcoin

Page 4: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Generazione di Chiavi Segrete

• Le transazioni Bitcoin sfruttano le firme digitali per trasferire crittovaluta tra diversi indirizzi

• Schema di firma usato: Elliptic Curve Digital SignatureAlgorithm (ECDSA)• Sicurezza basata sul problema del logaritmo discreto

• Chiavi algebraicamente deboli?• Individuate sfruttando alcune proprietà del gruppo moltiplicativo

del campo finito dei coefficienti

• Trovate 4 chiavi!

4 Cifrischain 2018 – Prof. Daniele Venturi

Page 5: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

5 Cifrischain 2018 – Prof. Daniele Venturi

Lotterie Giuste Distribuite

Pubblicazioni:• Massimo Bartoletti, Roberto Zunino. "Constant-Deposit Multiparty

Lotteries on Bitcoin". Financial Cryptography Workshops, 2017

Page 6: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Lancio di Moneta al Telefono

• Impegno digitale con hash: 𝐇(𝐴||𝑅) con 𝑅 casuale • Celante: Non rivela informazione su 𝐴• Vincolante: Non può essere aperto con 𝐴′ ≠ 𝐴

• Mancanza di giustizia• Alice può rifiutarsi di aprire l'impegno

6 Cifrischain 2018 – Prof. Daniele Venturi

Impegno su 𝐴

𝐵

𝑌 = 𝐴⊕ 𝐵 𝑌 = 𝐴⊕ 𝐵

𝐴 𝐵

Apertura 𝐴

Page 7: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Specificare Condizioni in Bitcoin

7 Prof. Daniele Venturi

• 𝑇3 redime 𝑇2 se 𝐶2 ritorna vero su input ([𝑇3],𝑊3)

• Transazioni classiche:𝐶2 𝑇3 ,𝑊3 = 𝐕(𝑝𝑘2, [𝑇3],𝑊3)

Condizione 𝐶2 per spendere 𝑇2 Indizio 𝑊2𝑇2 =𝑃2

𝑃3

𝑇11

BTC

Una funzione booleana

Condizione 𝐶3 per spendere 𝑇3 Indizio 𝑊3𝑇3 = 𝑇21

BTC

[𝑇3]

Page 8: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Impegno basato su Bitcoin

8 Cifrischain 2018 – Prof. Daniele Venturi

Può essere spesa usando la firma di Alice e (𝐴, 𝑅) t.c. 𝑌 = 𝐇(𝐴, 𝑅)

o usando entrambe le firme di Alice e Bob

Firma di Alice𝑇1

BTC"impegno" =

Postato sulla blockchakinTransazione precedente di

Alice

Invia a Bob una transazione "refund"

Può essere spesa usando la firma di Bob dopo un

giorno

Firma di Alice"impegno" 1 BTC"rimborso" =

Page 9: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Assicurare la Giustizia

• Se Alice non apre l'impegno entro un giorno, Bob ottiene 1BTC postando la transazione "rimborso"

• Altrimenti Alice riottiene 1BTC

9 Prof. Daniele Venturi

Impegno su 𝐴 basato suBitcoin

𝐵

𝑌 = 𝐴⊕ 𝐵 𝑌 = 𝐴⊕ 𝐵

𝐴 𝐵

Apertura 𝐴

Page 10: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Il Caso delle Lotterie: Risultati

10 Prof. Daniele Venturi

Andrychowicz & al. 2014

Bentov & Kumaresan 2014

Miller & Bentov 2017 v1

Miller & Bentov 2017 v2

Bartoletti & Zunino

Deposito 𝑁(𝑁 − 1) 𝑂(𝑁2) 0 0 𝑑 ≥ 0

Tempo 𝑂(1) 𝑂(𝑁) 𝑂(log𝑁) 𝑂(log𝑁) O(log N)

Transazioni "off-chain"

𝑂(𝑁2) - 𝑂(2𝑁) 𝑂(𝑁2) 𝑂(𝑁2)

Transazioni "on-chain"

𝑂(𝑁) 𝑂(𝑁2) 𝑂(𝑁2) 𝑂(𝑁) 𝑂(𝑁)

Caratteristiche Bitcoin

SegWitSegWit

MULTIINPUT(no interferences)

SegWitin-malleability

Page 11: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

11 Cifrischain 2018 – Prof. Daniele Venturi

BlockchainRiscrivibile

Pubblicazioni:• Giuseppe Ateniese, Bernardo Magri, Daniele Venturi, Ewerton Andrade. "Redactable

Blockchain – or – How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017Brevetti (con Accenture spa):• Hybrid Blockchain, Patent n. 9959065, May 2018.• Distributed Key Secret for Rewritable Blockchain, Patent n. 9774578, September 2017.• Multiple-Link Blockchain, Patent n. 9785369, October 2017.

Page 12: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Perché Riscrivere la Blockchain?

• Per rimediare ad errori umani• Rispettare regolamenti legislativi e risolvere "bachi"

• "General Data Protection Regulation" (GDPR)• Le violazioni della privacy comportano multe salate: 4% dei ricavati

annuali o 20 MLN EURO

• Gli "smart contracts" richiedono flessibilità• Vedere incidente DAO con 60 MLN USD rubati

• Scalabilità

12 Cifrischain 2018 – Prof. Daniele Venturi

Page 13: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Una Soluzione Semplice?

13 Prof. Daniele Venturi

• Effettuare il "chaining" solo tra gli hash dei dati; la rimozionedei dati non disturba quindi il "chaining"

• Non funziona! La blockchain non è solo un deposito di dati• Hash come prova di esistenza• L’esecuzione di "smart contract" richiede una evoluzione di stati

correlati• L'integrità non deriva solo dal "chaining" ma anche dai dati stessi

• Necessità di riscrivere il blocco nella sua interezza

Page 14: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Blockchain Private e Pubbliche

• La blockchain riscrivibile resta decentralizzata ed immutabile• Nessun server centralizzato

• Utenti maliziosi non sono in grado di riscrivere blocchi

• Blockchain private ("permissioned")• Amministratori fidati possono riscrivere o rimuovere blocchi sulla

base di regole di governance ben precise

• Blockchain pubbliche ("permissionless")• Più complicato capire chi può fare modifiche nel caso in cui

chiunque possa aggiungersi al sistema

14 Cifrischain 2018 – Prof. Daniele Venturi

Page 15: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Il Caso di Blockchain Privata

15 Cifrischain 2018 – Prof. Daniele Venturi

𝐵0 𝐵1 𝐵2 𝐵3 …

𝐵0 𝐵1 𝐵2 𝐵3 …

Blockchain classica

Blockchain riscrivibile

Cassetta di sicurezza

Page 16: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Cambiare un Blocco

16 Cifrischain 2018 – Prof. Daniele Venturi

𝐵0 𝐵1 𝐵2 𝐵3 …

𝐵1′

𝐵0 𝐵1′ 𝐵2 𝐵3 …

Collisione!

Page 17: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Hash Camaleontico

17 Cifrischain 2018 – Prof. Daniele Venturi

𝑥

𝑥′

𝐇ℎ

𝑥

𝑥′

𝐇ℎ

Hash classico

Hashcamaleontico

Page 18: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Lasciare una Cicatrice Incancellabile

18 Prof. Daniele Venturi

𝐵0 𝐵1 𝐵2 𝐵3 …

𝐵0 𝐵1′ 𝐵2 𝐵3 …

Collegamento mancante!

Page 19: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Una Soluzione Alternativa

19 Prof. Daniele Venturi

• Idea: Sfruttare le firme digitali di una maggioranza delleorganizzazioni del consorzio

• Firme raccolte per validare ogni blocco• Ogni blocco include il valore di un contatore

• Sovrascrivere un blocco significa ricalcolarlo e questo non ha impatto sui blocchi successivi• Il "chaining" viene dagli identificativi dei blocchi e dalla

certificazione fornita dalle firme

Page 20: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Il Caso di "Hyperledger Fabric"

20 Prof. Daniele Venturi

• Si può invalidare un blocco aggiornando dei metadati• Interpretazione della GDPR secondo cui i dati privati non più

necessari non devono essere "logicamente" disponibili• I dati "logicamente" rimossi non sono più disponibili agli "smart

contracts" ed alle altre applicazioni che accedono alla blockchain• Eccetto quelle coinvolte nel processo di consenso

Page 21: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Il Caso di Blockchain Pubblica

21 Prof. Daniele Venturi

• Impossibile in generale• Contraddirebbe la dinamicità delle blockchain pubbliche• I nuovi partecipanti devono essere in grado di verificare l’intera

blockchain

• Tuttavia esaminando casi specifici (es. Bitcoin) modifiche ad-hoc possono evitare l’inserimento di dati arbitrari• Prevenire è possibile• Chaining più complesso che permetta di eliminare gli eventuali

dati privati apparsi in una transazione, lasciando tuttavia in piedi la logica della stessa

Page 22: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Progetto PRIViLEDGE

22 Prof. Daniele Venturi

Privacy-Enhancing Cryptography in Distributed Ledgers Progetto H2020

Dal 2018 al 2020 Circa 4.5M EUR (10 partner) U. Salerno, IBM Zurich, Guardtime, IOHK, U. Edinburgh, TUE, ...

U. Salerno è workpackage leader per "Privacy-enhancingcryptography" "Zero-knowledge proofs", "publicly verifiable proofs", "verifiable

secure computation", ...

Page 23: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

23 Cifrischain 2018 – Prof. Daniele Venturi

Didattica

Page 24: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Università di Trento e FBK

24 Prof. Daniele Venturi

Università di Trento Corsi di formazione per le aziende e per le banche dal 2013 Evento "Bitcoin e Altcoin: Applicazioni e Limitazioni", 2015 Workshop su "Trusted Smart Contracts", FC 2017

Fondazione Bruno Kessler Workshop su Blockchain per il corso "Introduction to computer

and network security" al DISI Lezioni su Blockchain, Dipartimento di Sociologia e Facoltà di

Legge, Università di Trento

Page 25: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Accenture

25 Prof. Daniele Venturi

Partecipazione alla "London Blockchain Week" 2018 Partecipazione al "Security Blockchain Workshop" 2018

(Dublino) Speaker su tematiche Blockchain al "Campus Party" 2018 Blockchain Speech e Workshop alle Università

Federico II, Statale di Milano (sede Crema), Università della Calabria, Università di Padova, Università di Pisa per le Facoltà di Informatica/Ingegneria Informatica/Sicurezza Informatica

Page 26: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Eustema

26 Prof. Daniele Venturi

Attività di formazione come membro del gruppo di lavoro volontario sulla tecnologia blockchain nei processi dell'Amministrazione Comunale di Napoli

Partecipazione ed eventi di divulgazione tecnico-scientifica (es. evento DeCifris presso Università di Salerno)

Partecipazione a tavoli di associazioni pubblico-private per favorire il trasferimento tecnologico (es. ANITEC, CDTI, Canova Digitale, ecc.)

Page 27: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Università di Cagliari

27 Prof. Daniele Venturi

Corso in Cybersecurity della Laurea Magistrale in Informatica Crittovalute e "smart contracts"

"Summer school" su "distributed ledger technologies" (Giugno 2018) Polo tecnologico di Pula, Sardegna http://www.crs4.it/news-view/blockchain-and-distributed-

ledger-technology-school/

Page 28: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Università di Milano

28 Prof. Daniele Venturi

Corso di Crittografia 1 (A.A. 2018/2019) Argomenti trattati: Cryptocurrencies, Blockchain, e applicazioni

varie (6 ore)

Corso di perfezionamento UniMI (Aprile 2019) Argomenti trattati: Blockchain technology (15 ore)

Page 29: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Università di Salerno

29 Prof. Daniele Venturi

Laurea Magistrale in Ingegneria Informatica Corso: Sicurezza Informatica Docente: Ivan Visconti per 3 CFU (24 ore)

Argomenti trattati: Blockchain permissionless, Bitcoin, Ethereum, Smart Contracts,

Blockchain permissioned, Hyperldger Fabric

Page 30: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Sapienza Università di Roma

30 Prof. Daniele Venturi

• Laurea Magistrale in Data Science• Corso "Data Privacy and Security" (6 CFU)

• Laurea Magistrale in Cybersecurity• Corso "Secure Computation" (6 CFU)

• Argomenti trattati:• Bitcoin, Smart contracts, Algorand, Spacemint, Zerocash

Page 31: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Grazie!Per approfondire:

http://danieleventuri.altervista.org/

31 Cifrischain 2018 – Prof. Daniele Venturi

Page 32: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Recent Developments

• The "right to be forgotten" • A real case has stalled after the European Court of Justice found a

Dutch man's identity information was uploaded on the Bitcoin blockchain

• The Open Data Institute (ODI) Report: • "Immutable data storage in blockchains may be incompatible with

legislation which requires changes to the official truth"

• "Even if personal data is not stored on a blockchain, metadata can be sufficient to reveal information"

32 Cifrischain 2018 – Prof. Daniele Venturi

Page 33: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Recent Developments

• The European Union Agency for Network and Information Security (ENISA) Report: • "Define what to be kept confidential in order to remain compliant

with regulatory requirements"

• "Identify or develop standard methods for removing data from a ledger"

33 Cifrischain 2018 – Prof. Daniele Venturi

Page 34: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Recent Developments

• The European Securities and Markets Authority (ESMA) Report: • "The DLT that was originally designed for Bitcoin created

immutable records, meaning that transactions once validated cannot be modified, cancelled or revoked"

• "While this immutability had clear benefits in a permissionless DLT framework, it appears ill-suited to securities markets, e.g., operational errors may necessitate the cancellation of some transactions"

34 Cifrischain 2018 – Prof. Daniele Venturi

Page 35: Panoramica su Alcune Attività di Ricerca in Cifrischain · Blockchain –or –How to Rewrite History in Bitcoin and Friends". IEEE Euro S&P, 2017 Brevetti (con Accenture spa): •Hybrid

Enhanced Collision Resistance

35 Cifrischain 2018 – Prof. Daniele Venturi

• Hard to find collisions even after seeing polynomially manycollisions• Computed using the trapdoor key

• Previous constructions did not have this property or couldonly be proven secure in idealized models

𝐇 𝑚0; 𝑟0 = 𝐇 𝑚1; 𝑟1

(ℎ𝑘, 𝑡𝑘)ℎ𝑘

𝑟′𝑡𝑘 𝑚0, 𝑟0 , (𝑚1, 𝑟1)

win/lose