EthCC 2019, Paris
1
XClaim - @alexeiZamyatin
Interoperability between Bitcoin and Ethereum - Trustless
Dominik Harz, EDCON, 2019, Sydney
Motivation
2
A History of Theft and Loss
EDCON 2019, Sydney
3
XClaim - @nud3l
A History of Theft and Loss
EDCON 2019, Sydney
4
XClaim - @nud3l
Decentralized Exchanges?
Decentralized Exchanges
“Decentralized” Exchanges (DEX)
Mostly limited to ERC20 tokens on Ethereum
Not „cross-chain“!
EDCON 2019, Sydney
5
XClaim - @nud3l
Trading volume
Cross-Chain Communication Today
Atomic Cross-Chain Swaps* (2012)
Challenges
Wrapped Bitcoin
Challenges
6
XCLAIM in a nutshell
First introduced at Scaling Bitcoin October 2018
Issue���
Trade/swap
Connect DEX, Plasma, payment channels, stablecoins cross-chain, and more�
Redeem
7
Why XCLAIM?
Trustless cross-chain token issue and redeem
8
Conditional Locks in Bitcoin
Goal:
Unlock funds on Bitcoin only when tokens are burned
Challenge:
We cannot verify the state of Ethereum on Bitcoin
Can we use hashlocks?
Publicly verifiable contracts cannot generate random secret�
EDCON 2019, Sydney
9
XClaim - @nud3l
System Model
EDCON 2019, Sydney
10
XClaim - @nud3l
Requester: locks Bitcoin to issue Bitcoin-backed tokens on Ethereum
Redeemer: burns Bitcoin-backed tokens to receive Bitcoin
Sender/Receiver: Send/receive Bitcoin-backed tokens
Vault: ensures correct redeeming on backing chain.
Collateralized and permissionless
Smart Contract: responsible for issuing, trading and redeeming. Enforces correctness of Vaults.
Intermediaries
Smart Contract
EDCON 2019, Sydney
11
XClaim - @nud3l
Base functionality:
Chain Relay:
Collateralization:
Protocols
EDCON 2019, Sydney
12
XClaim - @nud3l
Issue
EDCON 2019, Sydney
13
XClaim - @nud3l
Vault
Issue: Precondition
EDCON 2019, Sydney
14
XClaim - @nud3l
🡪 Over-collateralization to mitigate exchange rate fluctuations
Vault
Issue
EDCON 2019, Sydney
15
XClaim - @nud3l
Vault
Issue
EDCON 2019, Sydney
16
XClaim - @nud3l
Vault
Issue
EDCON 2019, Sydney
17
XClaim - @nud3l
Vault
Issue
EDCON 2019, Sydney
18
XClaim - @nud3l
Vault
Swap & Transfer…
Simple ERC20 transfer / atomic swap!
Alice 🡪 Bob
EDCON 2019, Sydney
19
XClaim - @nud3l
Redeem
EDCON 2019, Sydney
20
XClaim - @nud3l
Vault
Redeem
EDCON 2019, Sydney
21
XClaim - @nud3l
Vault
Redeem
EDCON 2019, Sydney
22
XClaim - @nud3l
Vault
Redeem
EDCON 2019, Sydney
23
XClaim - @nud3l
Vault
Redeem
EDCON 2019, Sydney
24
XClaim - @nud3l
Vault
Redeem
EDCON 2019, Sydney
25
XClaim - @nud3l
Vault
Redeem
EDCON 2019, Sydney
26
XClaim - @nud3l
If the vault cannot provide proof of correct behavior:
Vault
System Properties
EDCON 2019, Sydney
27
XClaim - @nud3l
Implementation
EDCON 2019, Sydney
28
XClaim - @nud3l
Performance and Costs
EDCON 2019, Sydney
29
XClaim - @nud3l
Exchange rate: USD 220 / ETH (Gas cost: 5 gwei); USD 4.497 / BTC
“Recommended” security parameters: 14 sec x 12 ETH Tx confs; 10 min x 6 BTC Tx confs.
Comparison to HTLC Atomic Swaps
EDCON 2019, Sydney
30
XClaim - @nud3l
BTC-ETH swaps with XCLAIM are 95.7% faster and 64.5% cheaper for 1000 independent swaps.
Joint Work With
EDCON 2019, Sydney
31
XClaim - @nud3l
Alexei
Zamyatin
Joshua
Lind
Panayiotis
Panayiotu
Arthur
Gervais
William
Knottenbelt
EthCC 2019, Paris
32
XClaim - @alexeiZamyatin
eprint.iacr.org/2018/643
github.com/crossclaim
Questions?
Dominik Harz
@nud3l
d.harz@imperial.ac.uk
Website: xclaim.io