PERUN: Virtual Payment Hubs over Cryptocurrencies
Stefan Dziembowski Lisa Eckey Sebastian Faust Daniel Malinowski
PERUN: Virtual Payment Hubs over Cryptocurrencies Stefan - - PowerPoint PPT Presentation
PERUN: Virtual Payment Hubs over Cryptocurrencies Stefan Dziembowski Lisa Eckey Sebastian Faust Daniel Malinowski Blockchain Scalability Problem: Blockchain transactions are slow and expensive Transaction Send to Bob Fees Alice Bob
Stefan Dziembowski Lisa Eckey Sebastian Faust Daniel Malinowski
Goal: Microtransactions
Problem: Blockchain transactions are slow and expensive
Transaction Fees
Alice Bob
Send to Bob
Cheap Fast Offline Secure
2
Smart Contract
Store and send coins Execute code Store data Lock Interact Gas
Alice Bob 3
Guaranteed by the underlying cryptocurrency
New cryptographic protocol that allows microtransactions over cryptocurrencies
2 Types of payment channels
Ledger Payment Channels Virtual Payment Channels
Cheap Fast Offline Secure
5
Alice Bob
Lock cA Lock cB
Channel Contract (cA + cB coins) * Lightning, Spilman, Duplex, Sprites, Raiden, Counterfactual, L2 ….
6
Off-chain channel state: sv=(xA,xB,v)
Alice Bob
cA cB
s1 = (cA+5,cB-5,1) s0 = (cA,cB,0) s1 = (cA+5,cB-5,1) s0 = (cA,cB,0)
Cheap Fast Offline Secure
update s1 update s1
+5
7
chanAB
Alice Bob …
Channel Contract
sn is valid if q xA + xB = cA + cB q Aproved by A and B ...Wait for message from Bob ...
sn = (xA,xB,n) sm = (xA,xB,m) 8
Send sn Send sm Unlock xA Unlock xB
Select more recent state for payout
9
Idea: Route every transaction via intermediary
chanIB
* J. Poon, T. Dryja: The bitcoin lightning network: Scalable off-chain instant payments. (2016)
Alice Bob Ingrid
Fee chanAI
Z
Z
Ingrid pays Alice if Bob pays Ingrid Ingrid pays Bob if Alice pays Ingrid
10
chanIB
Alice Ingrid
chanAI
Bob
Cheap Fast Offline Secure
11
chanAB
Alice Bob
cI-1 cA-1 cB
c
I
chanAB
chanAB
chanAB
Ingrid 12
chanIB chanAI 2 2 chanIB chanAI
Alice Ingrid
cI- 1 cA-1 cB
c
I
2 2 chanIB chanAI
1 1
vs0 = (1, 1, 0) Bob
sm = (cA-1, cI-1, m) vs0 = (1, 1, 0) sn = (cI-1, cB-1, n)
2
update vs1
vs1 = (2, 0, 1) vs1 = (2, 0, 1) 13
chanAB
Alice Ingrid Bob
cI-1 cA-1 cB
c
I
last state: vsn last state: vsm
14
chanIB chanAI
2 2
Alice Ingrid Bob
cI-1 cA+1 cB
c
I
+ 1
update chanAI update chanIB update chanIB 2 2 chanIB chanAI
Ingrid stays financially neutral cA+1 c
I
+ 1
15
update chanAI
cA-1 c
I
16
This must hold even if ALL other players collude
Validity = t
2 2
17
Virtual Channel HTLC Network Ledger Channel
Channel Opening Update Agreement Disagreement Closing
via Ingrid
direct
via Ingrid
direct
via Ingrid
12 ct. 55 ct. 50 ct. 84 ct. 84 ct. Fee/ Payment Fee/ Validity
18
19
General State Channel Networks Multi-party Virtual State Channels @ CCS 2018 @ Eurocrypt 2019
All icons made by Freepik from www.flaticon.com