off-chain state network for fast dapps · local consensus • only alice and bob know: • alice...

32
Raiden Network Off-Chain State Network for fast DApps Heiko Hees / <[email protected]>

Upload: others

Post on 28-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Raiden Network

Off-Chain State Network

for fast DApps

Heiko Hees / <[email protected]>

Page 2: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Motivation

Page 3: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

• Throughput

• Transaction Finality

• Transaction Confidentiality

• Transaction Cost

Problems

Page 4: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Global Consensus

• The World knows: Alice sent Bob 5 tokens

• Problem: Latency & Bandwidth

Page 5: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Local Consensus

• Only Alice and Bob know:

• Alice owes Bob 5 tokens

• With state channel technology:

• Both know that Bob can settle this claim on the Blockchain

Alice Bob

Off-Chain Transactions Guarantees by On-Chain Deposits

Page 6: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Raiden Token

Network

Scalable, Instant and Low Cost

Token Transfers for Ethereum

Page 7: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

State Channel Network

Blockchain

- deposits

- settlement

State Channel Network

- off-chain transfers

- bilateral state updates

Page 8: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Implementation Details

https://www.youtube.com/watch?v=h791zjvf3uQ

Page 9: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Features

• Scaling out to 1.000.000+ transfers per second

• Low latency, instant token transfers

• Improved transaction confidentiality

• Low fees, Micropayments

• ERC20 token compatibility

Page 10: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

vs.

Unfair comparison

• Speed: ~x100

• Throughput: ~x10,000

• Cost: ~x1/1,000

Page 11: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Atomic Swaps

Alice

Dave

Charlie

Bob

10 A 10 A

3 B 3 B

Page 12: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Smart Transfers

• Transfer settlement can be dependent on

on-chain conditions (i.e. smart contract state)

• Examples:

• Betting, Options, etc.

Page 13: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Project Status

Page 14: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Working Prototype

Page 15: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

IoT Demo

• https://www.youtube.com/watch?v=dsWtxi--JFo

Page 16: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Collaborations

• Swarm Message Transport

• Micropayments for Swarm & LES

• Ethereum Client Integrations

• Early industry adopters

Page 17: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Roadmap

Page 18: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Decentralized

Exchanges

Page 19: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

On-Chain DEX

Maker

TX

Taker

TX• Maker: Adds offer, smart contract

takes tokens to into escrow

• Taker: Picks offer, sends

requested tokens, gets offered

tokens

Page 20: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

• Throughput

• Transaction Finality

• Transaction Cost

Problems with

on-chain exchanges

Page 21: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Off-Chain DEX

Maker

1) Broadcast: Offer

Taker

Page 22: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Problem: Free Option

• Party that commits first, offers free option

• Fake offers, will be exploited

• Tokens locked till timeout

Page 23: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Possible Solution:

Commitment Deposits

• small commitment deposits held by 3rd party

• released

• on proof of swap

• on timeout if only one committer

• lost if both committed but can not proof execution

Page 24: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Off-Chain DEX

Maker

2) Broadcast: Offer

Taker

3rd party

Page 25: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Properties

• Off-Chain, based on Raiden token transfers

• High throughput, low latency, low fees

• Abstraction: Traditional API and UX

• Limited trust required

Page 26: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Plan: Generalization

Page 27: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Goal

• Raiden Network as a generalized infrastructure to

host secure, scalable, low latency Dapps off-chain

• Software framework which makes it

easy for developers to build off-chain applications

Page 28: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Teaming Up

Page 29: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Conclusion

Page 30: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Raiden Network

• Works and is available soon™

• Goes beyond token transfers

• Killer Dapps very likely to use it

• Offers the properties required for

broad industry adoption of DLT

Page 31: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Get in touch

• Project: http://raiden.network/

• Github: https://github.com/raiden-network/

• Gitter: https://gitter.im/brainbot-com/raiden

• Company: http://brainbot.com/

Page 32: Off-Chain State Network for fast DApps · Local Consensus • Only Alice and Bob know: • Alice owes Bob 5 tokens • With state channel technology: • Both know that Bob can settle

Thank you