payment channels

Payment Channels Designing Secure Watchtowers Zeta Avarikioti ETH - PowerPoint PPT Presentation

Payment Channels Designing Secure Watchtowers Zeta Avarikioti ETH Zurich Distributed Computing www.disco.ethz.ch Can cryptocurrencies scale? 7 tx/s 20 tx/s 65.000 tx/s Payment Channels Payment Channels Payment Channels Funding


  1. Payment Channels Designing Secure Watchtowers Zeta Avarikioti ETH Zurich – Distributed Computing – www.disco.ethz.ch

  2. Can cryptocurrencies scale? 7 tx/s 20 tx/s 65.000 tx/s

  3. Payment Channels

  4. Payment Channels

  5. Payment Channels Funding transaction 1 Alice 5btc 1 Bob 4btc

  6. Payment Channels Funding transaction 1 Alice 5btc 1 Bob 4btc 5 4

  7. Payment Channels Funding transaction Alice sends 3btc 1 2 Alice 5btc Alice 2btc 1 2 Bob 4btc Bob 7btc 5 4 2 7

  8. Payment Channels Funding transaction Alice sends 3btc Bob sends 6btc 1 2 3 Alice 5btc Alice 2btc Alice 8btc 1 2 3 Bob 4btc Bob 7btc Bob 1btc 5 4 2 7 8 1

  9. Payment Network

  10. Lightning Channels Revocation Funding Commitment Dispute period

  11. Attack Funding Commitment Dispute period

  12. Watchtowers Revocation Funding Commitment Dispute period

  13. Why be a Watchtower?

  14. Why be a Watchtower? Assuming rational parties and watchtowers… - Will a party commit fraud? - Will a watchtower get paid? - Will a party commit fraud? - Will a watchtower get paid? - Will a party commit fraud? ...

  15. Why be a Watchtower? Watchtowers → Active Inactive Parties ↓ Fraud No Fraud

  16. Why be a Watchtower? Premiums Watchtowers → Active Inactive Parties ↓ Fraud No Fraud

  17. Why be an active Watchtower? Collateral

  18. Bitcoin ➔ UTXO-based (Unspent Transaction Output) ➔ Transaction: consumes & produces UTXOs ➔ Multi-signatures: σ AB ➔ Timelocks: Δt

  19. Lightning Channels #σ A (σ A ⋀ Δt) ⋁ σ AB σ AB a a Funding Commitment (1) a+b #σ B σ B On-chain Published by A b b (σ A ⋀ Δt) ⋁ σ AB σ AB σ B Commitment a i Revocation (i) a i σ B Published by A Published by B, b i W (σ A ⋀ Δt) ⋁ σ AB Commitment a i+1 (i+1) σ B Published by A b i+1

  20. Cerberus Channels #σ A (σ A ⋀ Δt) ⋁ σ AW σ AB a a Funding Commitment (1) a+b #σ B σ BW On-chain Published by A b b (σ A ⋀ Δt) ⋁ σ AW σ AW σ B Commitment a i Revocation (i) a i +b i σ BW Published by A Published by B, b i W (σ A ⋀ Δt) ⋁ σ AW σ B Commitment a i+1 Penalty 1 (i+1) c +b i σ BW Published by A Published by B b i+1 σ BW σ W #σ W Collateral Reclaim c c c Published by W On-chain

  21. Cerberus Channels #σ A (σ A ⋀ Δt) ⋁ σ AW σ AB a a Funding Commitment (1) a+b #σ B (σ B ⋀ Δt) ⋁ σ BW On-chain Published by A b b (σ A ⋀ Δt) ⋁ σ AW σ AW σ B Commitment a i Revocation (i) a i +b i (σ B ⋀ Δt) ⋁ σ BW σ BW Published by A Published by B, b i W σ B ⋀ Δt (σ A ⋀ Δt) ⋁ σ AW σ B Commitment a i+1 Penalty 1 (i+1) c +b i (σ B ⋀ Δt) ⋁ σ BW Published by A Published by B b i+1 σ BW σ W #σ W Collateral Reclaim c c c Published by W On-chain

  22. Cerberus Channels #σ A (σ A ⋀ Δt) ⋁ σ AW σ AB a a Funding Commitment (1) a+b #σ B (σ B ⋀ Δt) ⋁ σ BW On-chain Published by A b b (σ A ⋀ Δt) ⋁ σ AW σ AW σ B Commitment a i Revocation (i) a i +b i (σ B ⋀ Δt) ⋁ σ BW σ BW Published by A Published by B, b i W σ B ⋀ Δt (σ A ⋀ Δt) ⋁ σ AW σ B Commitment a i+1 Penalty 1 (i+1) c +b i (σ B ⋀ Δt) ⋁ σ BW Published by A Published by B b i+1 σ B ⋀ Δt σ BW σ B #σ W (σ W ⋀ ΔΤ) ⋁ σ BW σ BW Collateral Reclaim Penalty 2 c c c +b i c Published by W On-chain Published by B [Avarikioti, Tyfronitis-Litos, Wattenhofer. Cerberus Channels: Incentivizing Watchtowers for Bitcoin .]

  23. Fundamentals of Channels

  24. Fundamentals of Channels Funding Commitment Dispute period

  25. Fundamentals of Channels Eclipse ➔ Censor ➔ Congestion ➔ Funding Commitment Dispute period

  26. Time = CryptoMoney!

  27. Time = CryptoMoney! Asynchronous channels?

  28. Be proactive, not reactive

  29. Be proactive, not reactive Funding Close Signatures of Alice & Bob OR Signatures of ⅔ WT & (Alice or Bob)

  30. Challenges 1) Consensus is costly 2) Privacy is important 3) Incentives are critical

  31. Consistent Broadcast O(n) communication complexity for ➔ state updates Verification of consensus between ➔ Alice & Bob No liveness guarantees, if Alice & Bob ➔ both misbehave Consensus needed only for closing, if ➔ there is a dispute

  32. Encrypted State H( ) H( ) H( ) Privacy preserving ➔ Alice/Bob cannot publish a previous ➔ transaction

  33. Brick Architecture (3) Execute H( ) (3) Execute (1) Update H( ) H( ) (2) Consistent (2) Consistent Broadcast Broadcast

  34. Incentives ➔ Unilateral channel for fees: Repeated game lifts fair exchange impossibility ➔ Collateral for anti-bribing: Reduction to fair-exchange WT Committee size ↑ → per WT collateral ↓

  35. Brick Advantages ➔ Asynchronous channels ➔ Security even under L1 failure ➔ Privacy ➔ Incentive-compatible ➔ Embarrassingly parallel ➔ Linear communication [Avarikioti, Kokoris-Kogias, Wattenhofer. Brick: Asynchronous State Channels .]

  36. Thank you! Questions? ➔ Avarikioti, Tyfronitis-Litos, Wattenhofer. Cerberus Channels: Incentivizing Watchtowers for Bitcoin . Financial Cryptography and Data Security 2020. ➔ Avarikioti, Kokoris-Kogias, Wattenhofer. Brick: Asynchronous State Channels. ETH Zurich – Distributed Computing Group – www.disco.ethz.ch

Recommend


More recommend