sidechain talk

24
Sidechains Joris VALETTE December 11, 2014

Upload: jojva

Post on 16-Jul-2015

387 views

Category:

Engineering


2 download

TRANSCRIPT

Sidechains

Joris VALETTE

December 11, 2014

2/16

Limits to innovation Sidechains Conclusion

TABLE OF CONTENTS

Limits to innovationImproving BitcoinAltcoinsLayers on top of BitcoinOne-size-fits-all is not enough

SidechainsIntroduction to sidechainsHow they workPossible applicationsDrawbacks

Conclusion

3/16

Limits to innovation Sidechains Conclusion

IMPROVING BITCOIN

Improving the protocol is slowI A lot of testing and acknowledgment requiredI Some changes require soft-fork or hard-fork (e.g.

increasing block size)I Major redesigns are likely to be rejected (e.g. Treechains)I Near-impossibility to change economic rules

4/16

Limits to innovation Sidechains Conclusion

ALTCOINS

5/16

Limits to innovation Sidechains Conclusion

THEIR LIMITS

I Few innovate; many scamsI Fragment the market and the effortI Lack network effect

I Increased volatilityI Decreased securityI Poor number and poor quality of exchange markets

I Bitcoin still is 95% of total market

6/16

Limits to innovation Sidechains Conclusion

LAYERS ON TOP OF BITCOIN

Sometimes called ”Crypto 2.0”, they combine the blockchaintechnology with innovative ideas on topSome also need an altcoin:

I MastercoinI CounterpartyI ...

Some don’t:I Open-TransactionsI Colored CoinsI ...

7/16

Limits to innovation Sidechains Conclusion

ONE-SIZE-FITS-ALL IS NOT ENOUGH

I The unique Bitcoin blockchain cannot suit every needI Currently, if you have other use cases, you either:

1. Use or create a new cryptocurrency (altcoin)2. Use or create a centralized service (top layers)

Here comes a fourth option.

8/16

Limits to innovation Sidechains Conclusion

INTRODUCTION TO SIDECHAINS

”One Currency to rule them all”

8/16

Limits to innovation Sidechains Conclusion

INTRODUCTION TO SIDECHAINS

”One Currency to rule them all”

I Separating Bitcoin the technology and bitcoin the currencyI An ecosystem of alternative chains carrying bitcoinsI Innovation can happen in sidechainsI The main chain cannot be impacted by a sidechain’s

wrongdoing

9/16

Limits to innovation Sidechains Conclusion

BLOCKSTREAM

They founded a company around this idea, with:

I Adam Back – HashCashI Matt CoralloI Mark Friedenbach – FreicoinI Gregory Maxwell – Commit

access – The beardy geniusI Jorge Timon – Ripple and

FreicoinI Pieter Wuille – Commit accessI And others...

Their motto is ”Can’t be evil.”

10/16

Limits to innovation Sidechains Conclusion

HOW THEY WORK

1. Lock bitcoins with a special address

2. Wait for confirmation period (1-2 days)3. Create a transaction on the sidechain that proves your

bitcoins were locked on the parent chain and buried undersufficient PoW

4. Wait for contest period (1-2 days)5. You can now use your Bitcoins on the sidechains, with

whatever the new rules are

10/16

Limits to innovation Sidechains Conclusion

HOW THEY WORK

1. Lock bitcoins with a special address2. Wait for confirmation period (1-2 days)

3. Create a transaction on the sidechain that proves yourbitcoins were locked on the parent chain and buried undersufficient PoW

4. Wait for contest period (1-2 days)5. You can now use your Bitcoins on the sidechains, with

whatever the new rules are

10/16

Limits to innovation Sidechains Conclusion

HOW THEY WORK

1. Lock bitcoins with a special address2. Wait for confirmation period (1-2 days)3. Create a transaction on the sidechain that proves your

bitcoins were locked on the parent chain and buried undersufficient PoW

4. Wait for contest period (1-2 days)5. You can now use your Bitcoins on the sidechains, with

whatever the new rules are

10/16

Limits to innovation Sidechains Conclusion

HOW THEY WORK

1. Lock bitcoins with a special address2. Wait for confirmation period (1-2 days)3. Create a transaction on the sidechain that proves your

bitcoins were locked on the parent chain and buried undersufficient PoW

4. Wait for contest period (1-2 days)

5. You can now use your Bitcoins on the sidechains, withwhatever the new rules are

10/16

Limits to innovation Sidechains Conclusion

HOW THEY WORK

1. Lock bitcoins with a special address2. Wait for confirmation period (1-2 days)3. Create a transaction on the sidechain that proves your

bitcoins were locked on the parent chain and buried undersufficient PoW

4. Wait for contest period (1-2 days)5. You can now use your Bitcoins on the sidechains, with

whatever the new rules are

10/16

Limits to innovation Sidechains Conclusion

HOW THEY WORK

I Process is symmetricI One rule will especially be enforced on Bitcoin : There can

only be as many bitcoins that come back from thesidechain as there were sent to it.

I Possibility of ”atomic swaps”I Sidechains can be recursive

11/16

Limits to innovation Sidechains Conclusion

POSSIBLE APPLICATIONS

I Beta (with real value unlike Testnet)I R&D, experimentation, bleeding-edge cryptographyI Faster blocks (like Litecoin, Dogecoin)I Alternative proof-of-work algorithms (Scrypt instead of

SHA256, etc.)I Alternative consensus algorithms (like Peercoin,

Primecoin)I Microtransactions

11/16

Limits to innovation Sidechains Conclusion

POSSIBLE APPLICATIONS

I Fully anonymous and untraceable transactions (likeZerocoin)

I Demurrage (like Freicoin)I Sophisticated scripting and smart contracts (like Ethereum)I Possibility to peg an existing altcoin (Namecoin would be

awesome)I Useless/gambling/high-risk sidechains: ”lottochain”[5],

etc.I And many ideas we haven’t thought of yet!

12/16

Limits to innovation Sidechains Conclusion

A NEW PARADIGM

Now this picture makes more sense[2]

13/16

Limits to innovation Sidechains Conclusion

DRAWBACKS

I Increase complexity of the network; more complex walletsneeded

I Centralisation risksI Soft-fork required

13/16

Limits to innovation Sidechains Conclusion

DRAWBACKS

51% attacks on a sidechain may be easyI → Attacker rewrites the history of the sidechain at will,

allowing him to steal bitcoinsI Sidechain becomes a fractional reserve → possibility of

”bank run”I or Sidechain lowers its exchange rate, putting every owner

of the sidecoins at a disadvantage (a little better)This risk can be reduced via merge-mining, or totally removedwith zk-SNARKs (bleeding-edge cryptography)

14/16

Limits to innovation Sidechains Conclusion

CONCLUSION

I Ground for innovationI Nobody is forced to use sidechainsI They do not offer the same level of security as Bitcoin as

currently designed

15/16

Limits to innovation Sidechains Conclusion

REFERENCES I

Blockstream team.Blockstream’s github.https://github.com/blockstream.

Blockstream team.Nice Sidechains picture.http://www.blockstream.com/.

Blockstream team.Sidechain paper.http://www.blockstream.com/sidechains.pdf.

Richard Gendal Brown.A simple explanation of Bitcoin “Sidechains”.http://gendal.wordpress.com/2014/10/26/a-simple-explanation-of-bitcoin-sidechains/.

16/16

Limits to innovation Sidechains Conclusion

REFERENCES II

/u/socrates1024.Lottochain idea.http://www.reddit.com/r/IAmA/comments/2k3u97/we_are_bitcoin_sidechain_paper_authors_adam_back/clhnvwk.