Code is not law

Tim Swanson
Tim SwansonDirector of Research at Post Oak Labs
Code is not law
If it was really law, it would be settled and we wouldn’t be having this
conversation
Disclaimer
• The views expressed in this presentation are solely my own and do
not necessarily represent the views of my employer or any
organization I advise
• I neither own nor have any trading position on any cryptocurrency
• I am not a lawyer
Why does C-i-n-L matter?
• When validating transactions and code on a network:
• How do we decide who has legal standing when something forks or breaks?
• How do we decide who is liable when a hack or mistake occurs?
• How do we decide who bears responsibility if a block reorg or orphan occurs?
• How do we decide who is responsible for recourse and restitution?
• How do we decide who has a contractual relationship to fulfill validating
duties?
• How do we decide who can enforce the rulings of disputes?
• Or in short: when the system doesn’t behave like it was expected to, how do
we decide who is at fault?
If the cryptocurrency community could achieve
governance / enforcement algorithmically, we already
would have done that. We're having this meeting today
because something broke.
What now?
Public / anarchic chains
• Intentionally lack:
• Terms of Service; End-User License Agreement; service-level agreement; consumer
protections; customer service
• Customer service handled solely via upvoting and retweeting on social media
• They lack these contractual hooks because any such artifact in an anarchic
chain leads to some "controller" who can be shut down
• And because these systems were specifically designed around
pseudonymous interactions: there are no linkages to external identification
systems and no hooks into the traditional legal system
• This may be desirable to specific groups of consumers however empirically the user
experience (UX) for unsavvy users is extremely poor and filled with friction
What does this look like in practice?
Examples of off-chain governance / resolution
• The DAO attack / counter attack / counter counter attack
• On June 18, 2016 over 3.64 million ether (~$55 million) was drained from The DAO into a child
DAO
• Solutions carried out: massive off-chain social media debates leading to a hard fork
• “Accidental” fees to miners
• On August 28, 2013 a bitcoin user sent a 200 bitcoin fee ($23,518) that was processed by
ASICMiner
• Solution carried out: complaints on reddit leading to a purported refund
• On April 25, 2015 a BitGo user, due to a software glitch, accidentally sent 85 bitcoins ($19,197)
as a mining fee to AntPool
• Solution carried out: complaints on reddit leading to a refund
• On September 11, 2015 another user sent 4.6 bitcoins (worth $1,113) as a fee to AntPool
• Solution carried out: Bitmain, the parent company, once again returned the fee to the user
• On April 27, 2016 a user sent a 291 bitcoin fee (~ $137,000) that was packaged by BitClub
Network, a pool in the Netherlands
• Someone claiming to be a representative from BitClub claimed on Twitter they were trying to reach out and
find the user but it is unclear if this was all just a ruse (part of a MLM scam?); half the fee (146 bitcoiions) was
later donated to The Bitcoin Foundation
Code is not law
Cont’d
• Value overflow incident / CVE-2010-5139
• On August 15, 2010 block 74638 contained 184.4 billion bitcoins
• Solution: Hard fork / soft fork (depends on who you talk to)
• On March 11, 2013 an accidental fork occurred and 24 blocks (600 bitcoins)
were eventually orphaned (version 0.7 and version 0.8)
• Solution: coordination on IRC via mining pools, exchanges, and developers
• Losers: BTC Guild (which mined some of the blocks), OKPay (hit by a double-spend)
• Bitfinex hack (among many other hacks of unregulated exchanges)
• On August 2, 2016 at least 119,756 bitcoins (~$66 million) were stolen* from Bitfinex
• Solutions carried out: coordination with off-chain law enforcement; massive social media
debates; socialized losses of 36% across all accounts including non-bitcoin assets
A (brief) anatomy of a hack
The first 10 blocks that included transactions from the August 2016 Bitfinex hack
were built into blocks by the following pools (listed chronologically):
• BTCC Pool (mined the first block of the hack)
• AntPool
• ViaBTC
• AntPool
• BTCC Pool
• BW Pool
• Bitfury
• ViaBTC
• F2Pool
• F2Pool
Code is not law
Restitution?
• 9 out of the first 10 blocks that included the Bitfinex coins were built by pools
operating in a country that has different data privacy / property laws than those in
the West
• How does operating in this jurisdiction (China) impact the (future) answers from the same
questions on slide #3? (i.e., laws are different everywhere)
• Can mining pool operators be held liable for some damages, especially as news
becomes more widespread?
• What kind of risk monitoring will the market and regulators place onto the market?
• E.g., via analytics / data science you can see the exact transactions just by looking at the
blockchain
• There are about 10 companies that now provide this kind of risk / threat modeling to
compliance teams and law enforcement
Ethereum hard fork
• On July 20, 2016 – multiple stakeholders in the Ethereum ecosystem
initiated a purposeful hard fork at block height 1920000
• Both block 1920000 and block 1920001 were mined by BW.com
• Sidenote: BW.com is also a prominent pool for Bitcoin
• If financial instruments from a regulated institution were sent to
miners during the transition phase and are no longer accessible
because the instruments were sent to the “deprecated” chain, who is
to blame and bears responsibility?
• Which party is supposed to provide compensation and restitution?
What happened after the fork?
Code is not law
Code is not law
Common theme of anarchic chains: governance
and dispute resolution continues to be handled
off-chain via social media and traditional legal
infrastructure (e.g., courts)
Because of the intentional lack of ties into legal
infrastructure, anarchic / public blockchains
operate on the premise of caveat emptor
This creates a complicated, friction-full
experience for unsavvy users
What if you link the code to legal prose (and
vice-versa)?
Let’s review a few alternatives
• Chains, ledgers, and code tied directly into legal infrastructure and
institutions by default are under development
• Examples of alternatives:
• Ricardian Contracts
• Barclays: Smart Contract Templates
• Eris: dual integration
• Corda
• Sidebar: Robert Sams and his definition of ‘distributed ledgers’
• See also: CommonAccord as well as Tezos – a self-amending chain
Ricardian Contract / Ian Grigg
• A single document that is
• a) a contract offered by an issuer to holders,
• b) for a valuable right held by holders, and managed by the issuer,
• c) easily readable by people (like a contract on paper),
• d) readable by programs (parsable like a database),
• e) digitally signed,
• f) carries the keys and server information, and
• g) allied with a unique and secure identifier.
Code is not law
Josh Stark; and Barclays
• Proposed definitions which are distinctly different than what C-i-L
proponents make:
• “smart legal contracts”
• where the agreement is a legal agreement, which is then capable of
automatic execution in software
• “smart contract code”
• which may not necessarily be linked to a formal legal agreement, yet must be
executed automatically
Corda / Richard Brown
• Our starting point is individual agreements between firms (“state objects”,
governed by “contract code” and associated “legal prose”). We reject the notion
that all data should be copied to all participants, even if it is encrypted.
• Secondly, our focus is on agreements: the need to link to legal prose is
considered from the start. We know there will still always be some disputes and
we should specify right up front how they will be resolved.
• Thirdly, we take into the account the reality of managing financial agreements;
we need more than just a consensus system. We need to make it easy to write
business logic and integrate with existing code; we need to focus on
interoperability. And we need to support the choreography between firms as they
build up their agreements.
Why should you care about how other platforms
are handling legal prose and contract code?
Tldr: if you don't say up front how problems will
be resolved, then anything goes ... which means
you eventually end up in court which is a bit self-
defeating for an anarchic chain.
To solve this problem a community needs to state
up front how the disputes will be resolved in the
contract itself.
What does this have to do with Ethereum or other
anarchic chains?
ETH and ETC and others down the line
• Because there is no de jure authority in an anarchic chain, no one can
legitimately claim which chain is the “right” one
• As a consequence, lacking ties into legal infrastructure, there is no
recognized external authority that can legitimately claim which fork of
Bitcoin or Ethereum is the ‘One True Chain.’
• Instead there are other attempts to attest to which chain is supposed to be
the de facto chain:
• E.g., via PoW / PoS, the chain code, the smart contract, the community, the Foundation,
the devs and other stakeholders.
Cont’d
• In other words, public blockchains, contrary to the claims on social media,
are not “law” because they do not actually tie into the legal infrastructure
which they were purposefully designed to skirt
• They do not handle disputes on-chain: leaving it to a nebulous, ill-defined
handwavy governance process pitting miners versus developers versus
users versus commercial companies and so forth
• This is visible during the current ETH versus ETC debates as well as the
Bitcoin Core versus Bitcoin Classic debates (e.g., private conferences for
miners, sock puppets, censorship)
Any potential solutions for the
Ethereum community?
Ian Grigg’s suggestion for Ethereum
1. there is a chain agreement to which all abide.
2. the chain agreement says in prose that ‘we accept smart contracts
as binding.’
3. proper smart contracts include legal prose that refers all T&C to the
code.
4. dispute resolution is set in 1 and can be overridden in 3.
5. the no-brainer dispute resolution is Arbitration before an arbitrator
chosen under community-written rules.
Once agreed, Arbitration provides substantial protection from civil
claims "to arbitration you go!" and also provides the gravitas to order a
hard fork. It can also accommodate psuedonyms.
Conclusions
• Empirically, mistakes can and do continue to be made on public /
anarchic chains but they lack any native on-chain mechanism to
directly enforce / govern off-chain actions and data
• As a result: if you are involved in above-board commercial activity,
attempting to rectify and hold those liable for their contractual
responsibilities is difficult on anarchic chains
• If your assumption is that traditional legal infrastructure and
identities may be required and used during the commercial
transaction then permissioned ledgers / “archy” chains are fit-for-
purpose for your operation
Contact
tim@r3cev.com
1 of 34

Recommended

Future of money by
Future of moneyFuture of money
Future of moneyMike Hearn
94.6K views49 slides
Buckets of Permissioned, Permissionless, and Permissioned Permissionlessness ... by
Buckets of Permissioned, Permissionless, and Permissioned Permissionlessness ...Buckets of Permissioned, Permissionless, and Permissioned Permissionlessness ...
Buckets of Permissioned, Permissionless, and Permissioned Permissionlessness ...Tim Swanson
26K views69 slides
Distributed Ledger Technology as Financial Market Infrastructure by
Distributed Ledger Technology as Financial Market InfrastructureDistributed Ledger Technology as Financial Market Infrastructure
Distributed Ledger Technology as Financial Market InfrastructureTim Swanson
16.7K views33 slides
Moving Beyond BINO Beta by
Moving Beyond BINO BetaMoving Beyond BINO Beta
Moving Beyond BINO BetaTim Swanson
6.9K views26 slides
Introduction to blockchain & cryptocurrencies by
Introduction to blockchain & cryptocurrenciesIntroduction to blockchain & cryptocurrencies
Introduction to blockchain & cryptocurrenciesAurobindo Nayak
309 views35 slides
Blockchain in Trade Finance by
Blockchain in Trade FinanceBlockchain in Trade Finance
Blockchain in Trade FinanceAurobindo Nayak
1.8K views32 slides

More Related Content

What's hot

Blockchain solutions forum and crypto-economy by
Blockchain solutions forum and crypto-economyBlockchain solutions forum and crypto-economy
Blockchain solutions forum and crypto-economyeraser Juan José Calderón
1.6K views16 slides
Future Opportunities and Economic Challenges for Cryptoledgers: Trends and sp... by
Future Opportunities and Economic Challenges for Cryptoledgers: Trends and sp...Future Opportunities and Economic Challenges for Cryptoledgers: Trends and sp...
Future Opportunities and Economic Challenges for Cryptoledgers: Trends and sp...Tim Swanson
6.7K views40 slides
Blockchain for Business by
Blockchain for BusinessBlockchain for Business
Blockchain for BusinessFloyd DCosta
4.6K views12 slides
The Distributed Ledger Landscape by
The Distributed Ledger LandscapeThe Distributed Ledger Landscape
The Distributed Ledger LandscapeTim Swanson
43.3K views70 slides
Eris Industries - American Banker presentation deck. by
Eris Industries - American Banker presentation deck. Eris Industries - American Banker presentation deck.
Eris Industries - American Banker presentation deck. Preston Byrne
3.4K views57 slides
Color around Dead Token Litigation by
Color around Dead Token LitigationColor around Dead Token Litigation
Color around Dead Token LitigationTim Swanson
1.7K views37 slides

What's hot(19)

Future Opportunities and Economic Challenges for Cryptoledgers: Trends and sp... by Tim Swanson
Future Opportunities and Economic Challenges for Cryptoledgers: Trends and sp...Future Opportunities and Economic Challenges for Cryptoledgers: Trends and sp...
Future Opportunities and Economic Challenges for Cryptoledgers: Trends and sp...
Tim Swanson6.7K views
Blockchain for Business by Floyd DCosta
Blockchain for BusinessBlockchain for Business
Blockchain for Business
Floyd DCosta4.6K views
The Distributed Ledger Landscape by Tim Swanson
The Distributed Ledger LandscapeThe Distributed Ledger Landscape
The Distributed Ledger Landscape
Tim Swanson43.3K views
Eris Industries - American Banker presentation deck. by Preston Byrne
Eris Industries - American Banker presentation deck. Eris Industries - American Banker presentation deck.
Eris Industries - American Banker presentation deck.
Preston Byrne3.4K views
Color around Dead Token Litigation by Tim Swanson
Color around Dead Token LitigationColor around Dead Token Litigation
Color around Dead Token Litigation
Tim Swanson1.7K views
Jp morgan blockchain bitcoin by Rein Mahatma
Jp morgan blockchain bitcoinJp morgan blockchain bitcoin
Jp morgan blockchain bitcoin
Rein Mahatma267 views
Blockchain for Financial Institutions (the beginning) by Karnan Ariaratnam
Blockchain for Financial Institutions (the beginning)Blockchain for Financial Institutions (the beginning)
Blockchain for Financial Institutions (the beginning)
Karnan Ariaratnam1.1K views
Blockchain Finance by rmsams
Blockchain FinanceBlockchain Finance
Blockchain Finance
rmsams6.5K views
B-words and financial market infrastructures by Tim Swanson
B-words and financial market infrastructuresB-words and financial market infrastructures
B-words and financial market infrastructures
Tim Swanson1.8K views
Blockchain law and governance: General Conclusion -- Milan, October 2019 by Tony Lai
Blockchain law and governance: General Conclusion -- Milan, October 2019Blockchain law and governance: General Conclusion -- Milan, October 2019
Blockchain law and governance: General Conclusion -- Milan, October 2019
Tony Lai115 views
Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P... by Bernhard Haslhofer
Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P...Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P...
Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P...
Bernhard Haslhofer565 views
Blockchain case study powerpoints: Brief intro by Shane Ninai
Blockchain case study powerpoints: Brief introBlockchain case study powerpoints: Brief intro
Blockchain case study powerpoints: Brief intro
Shane Ninai1.3K views
Overcoming the Barriers to Blockchain Adoption by MongoDB
Overcoming the Barriers to Blockchain AdoptionOvercoming the Barriers to Blockchain Adoption
Overcoming the Barriers to Blockchain Adoption
MongoDB2.2K views
FINTECH Circle Blockchain Masterclass with Prof Mainelli @ BNY Mellon by FINTECH Circle
FINTECH Circle Blockchain Masterclass with Prof Mainelli @ BNY MellonFINTECH Circle Blockchain Masterclass with Prof Mainelli @ BNY Mellon
FINTECH Circle Blockchain Masterclass with Prof Mainelli @ BNY Mellon
FINTECH Circle4.2K views
Blockchain, Finance & Regulatory Development by Alex Makosz
Blockchain, Finance & Regulatory DevelopmentBlockchain, Finance & Regulatory Development
Blockchain, Finance & Regulatory Development
Alex Makosz861 views
FirstPartner 2016 Blockchain Ecosystem Market Map by Richard Warren
FirstPartner 2016 Blockchain Ecosystem Market MapFirstPartner 2016 Blockchain Ecosystem Market Map
FirstPartner 2016 Blockchain Ecosystem Market Map
Richard Warren22K views

Similar to Code is not law

Blockchain and crypto presentation by
Blockchain and crypto presentationBlockchain and crypto presentation
Blockchain and crypto presentationwwilliams2010
91 views16 slides
blockchain bootcamp @WCNJ by
blockchain bootcamp @WCNJblockchain bootcamp @WCNJ
blockchain bootcamp @WCNJAsh Yadav
256 views51 slides
NYS Forum - Blockchain by
NYS Forum - BlockchainNYS Forum - Blockchain
NYS Forum - BlockchainJoel Binn
637 views20 slides
PLI Blockchain Future Legal Issues 2021(296516723.1)(1).pdf by
PLI  Blockchain Future Legal Issues 2021(296516723.1)(1).pdfPLI  Blockchain Future Legal Issues 2021(296516723.1)(1).pdf
PLI Blockchain Future Legal Issues 2021(296516723.1)(1).pdfMark Radcliffe
24 views53 slides
Challenges of litigating crypto / blockchain disputes by
Challenges of litigating crypto / blockchain disputesChallenges of litigating crypto / blockchain disputes
Challenges of litigating crypto / blockchain disputesNino Sievi
128 views10 slides
Microsoft Accelerator event- Maria's Legal presentation by
Microsoft Accelerator event- Maria's Legal presentation Microsoft Accelerator event- Maria's Legal presentation
Microsoft Accelerator event- Maria's Legal presentation Hila Bar
332 views24 slides

Similar to Code is not law(20)

Blockchain and crypto presentation by wwilliams2010
Blockchain and crypto presentationBlockchain and crypto presentation
Blockchain and crypto presentation
wwilliams201091 views
blockchain bootcamp @WCNJ by Ash Yadav
blockchain bootcamp @WCNJblockchain bootcamp @WCNJ
blockchain bootcamp @WCNJ
Ash Yadav256 views
NYS Forum - Blockchain by Joel Binn
NYS Forum - BlockchainNYS Forum - Blockchain
NYS Forum - Blockchain
Joel Binn637 views
PLI Blockchain Future Legal Issues 2021(296516723.1)(1).pdf by Mark Radcliffe
PLI  Blockchain Future Legal Issues 2021(296516723.1)(1).pdfPLI  Blockchain Future Legal Issues 2021(296516723.1)(1).pdf
PLI Blockchain Future Legal Issues 2021(296516723.1)(1).pdf
Mark Radcliffe24 views
Challenges of litigating crypto / blockchain disputes by Nino Sievi
Challenges of litigating crypto / blockchain disputesChallenges of litigating crypto / blockchain disputes
Challenges of litigating crypto / blockchain disputes
Nino Sievi128 views
Microsoft Accelerator event- Maria's Legal presentation by Hila Bar
Microsoft Accelerator event- Maria's Legal presentation Microsoft Accelerator event- Maria's Legal presentation
Microsoft Accelerator event- Maria's Legal presentation
Hila Bar332 views
Seminarreportonbitcoinapp02 by Mayuresh Singh
Seminarreportonbitcoinapp02Seminarreportonbitcoinapp02
Seminarreportonbitcoinapp02
Mayuresh Singh3.7K views
A Primer on Blockchain and its Potential, with a Focus on the GCC by Zeyad T. Al Mudhaf
A Primer on Blockchain and its Potential, with a Focus on the GCCA Primer on Blockchain and its Potential, with a Focus on the GCC
A Primer on Blockchain and its Potential, with a Focus on the GCC
Zeyad T. Al Mudhaf2.4K views
Blockchain and Smart Contracts by Nelson Rosario
Blockchain and Smart ContractsBlockchain and Smart Contracts
Blockchain and Smart Contracts
Nelson Rosario782 views
Blockchains by Ian Blum
BlockchainsBlockchains
Blockchains
Ian Blum17 views
Blockchain in Healthcare by Alex Tsado
Blockchain in Healthcare Blockchain in Healthcare
Blockchain in Healthcare
Alex Tsado10.4K views
IP Considerations for Blockchain Technology by Nelson Rosario
IP Considerations for Blockchain TechnologyIP Considerations for Blockchain Technology
IP Considerations for Blockchain Technology
Nelson Rosario1.2K views
Blockchain Projects - Core Pillars of Shipping Product, Feb 2018 by 🔗Audrey Chaing
Blockchain Projects - Core Pillars of Shipping Product, Feb 2018Blockchain Projects - Core Pillars of Shipping Product, Feb 2018
Blockchain Projects - Core Pillars of Shipping Product, Feb 2018
🔗Audrey Chaing628 views
An in depth presentation of Cryptocurrency. by SanjeebSamanta1
An in depth presentation of Cryptocurrency.An in depth presentation of Cryptocurrency.
An in depth presentation of Cryptocurrency.
SanjeebSamanta1252 views
CryptoCamp Version 1.0 as of Mar. 15, 2019 by Charles Adjovu
CryptoCamp Version 1.0 as of Mar. 15, 2019CryptoCamp Version 1.0 as of Mar. 15, 2019
CryptoCamp Version 1.0 as of Mar. 15, 2019
Charles Adjovu214 views
Blockchain, Impact, Challenges, and Risks by Srinath Perera
Blockchain, Impact, Challenges, and RisksBlockchain, Impact, Challenges, and Risks
Blockchain, Impact, Challenges, and Risks
Srinath Perera242 views
Building Open protocol ventures by Tom Ding
Building Open protocol venturesBuilding Open protocol ventures
Building Open protocol ventures
Tom Ding550 views

More from Tim Swanson

The Fed and FDIC bailed out “crypto friendly” banks.pptx by
The Fed and FDIC bailed out “crypto friendly” banks.pptxThe Fed and FDIC bailed out “crypto friendly” banks.pptx
The Fed and FDIC bailed out “crypto friendly” banks.pptxTim Swanson
161 views132 slides
The Nuances of Tokenization: A brief explanation on attempts from this past d... by
The Nuances of Tokenization: A brief explanation on attempts from this past d...The Nuances of Tokenization: A brief explanation on attempts from this past d...
The Nuances of Tokenization: A brief explanation on attempts from this past d...Tim Swanson
3.7K views9 slides
Collateral-backed stablecoin landscape by
Collateral-backed stablecoin landscapeCollateral-backed stablecoin landscape
Collateral-backed stablecoin landscapeTim Swanson
416 views29 slides
DeFi's dependency on the U.S. banking system by
DeFi's dependency on the U.S. banking systemDeFi's dependency on the U.S. banking system
DeFi's dependency on the U.S. banking systemTim Swanson
599 views58 slides
Exchange-related chains such as BSC by
Exchange-related chains such as BSCExchange-related chains such as BSC
Exchange-related chains such as BSCTim Swanson
395 views18 slides
Regtech in the era of intermediaries by
Regtech in the era of intermediariesRegtech in the era of intermediaries
Regtech in the era of intermediariesTim Swanson
1.2K views107 slides

More from Tim Swanson(16)

The Fed and FDIC bailed out “crypto friendly” banks.pptx by Tim Swanson
The Fed and FDIC bailed out “crypto friendly” banks.pptxThe Fed and FDIC bailed out “crypto friendly” banks.pptx
The Fed and FDIC bailed out “crypto friendly” banks.pptx
Tim Swanson161 views
The Nuances of Tokenization: A brief explanation on attempts from this past d... by Tim Swanson
The Nuances of Tokenization: A brief explanation on attempts from this past d...The Nuances of Tokenization: A brief explanation on attempts from this past d...
The Nuances of Tokenization: A brief explanation on attempts from this past d...
Tim Swanson3.7K views
Collateral-backed stablecoin landscape by Tim Swanson
Collateral-backed stablecoin landscapeCollateral-backed stablecoin landscape
Collateral-backed stablecoin landscape
Tim Swanson416 views
DeFi's dependency on the U.S. banking system by Tim Swanson
DeFi's dependency on the U.S. banking systemDeFi's dependency on the U.S. banking system
DeFi's dependency on the U.S. banking system
Tim Swanson599 views
Exchange-related chains such as BSC by Tim Swanson
Exchange-related chains such as BSCExchange-related chains such as BSC
Exchange-related chains such as BSC
Tim Swanson395 views
Regtech in the era of intermediaries by Tim Swanson
Regtech in the era of intermediariesRegtech in the era of intermediaries
Regtech in the era of intermediaries
Tim Swanson1.2K views
Blockchain 2040 by Tim Swanson
Blockchain 2040Blockchain 2040
Blockchain 2040
Tim Swanson26.7K views
The tech landscape surrounding distributed ledgers by Tim Swanson
The tech landscape surrounding distributed ledgersThe tech landscape surrounding distributed ledgers
The tech landscape surrounding distributed ledgers
Tim Swanson60.4K views
Defining Smart Contracts by Tim Swanson
Defining Smart ContractsDefining Smart Contracts
Defining Smart Contracts
Tim Swanson31K views
Brief overview of cryptoeconomics by Tim Swanson
Brief overview of cryptoeconomicsBrief overview of cryptoeconomics
Brief overview of cryptoeconomics
Tim Swanson22.7K views
The Future of Fintech: Crystal balls and tasseography by Tim Swanson
The Future of Fintech: Crystal balls and tasseographyThe Future of Fintech: Crystal balls and tasseography
The Future of Fintech: Crystal balls and tasseography
Tim Swanson13.2K views
By the numbers: understanding value transfers to and from China by Tim Swanson
By the numbers: understanding value transfers to and from ChinaBy the numbers: understanding value transfers to and from China
By the numbers: understanding value transfers to and from China
Tim Swanson11.2K views
Making Lemonade out of Lemons: Squeezing utility from a proof-of-work experiment by Tim Swanson
Making Lemonade out of Lemons: Squeezing utility from a proof-of-work experimentMaking Lemonade out of Lemons: Squeezing utility from a proof-of-work experiment
Making Lemonade out of Lemons: Squeezing utility from a proof-of-work experiment
Tim Swanson8.8K views
The Continued Existence of Altcoins, Appcoins and Commodity coins by Tim Swanson
The Continued Existence of Altcoins, Appcoins and Commodity coinsThe Continued Existence of Altcoins, Appcoins and Commodity coins
The Continued Existence of Altcoins, Appcoins and Commodity coins
Tim Swanson15.5K views
Sidechains and Bitcoin security by Tim Swanson
Sidechains and Bitcoin securitySidechains and Bitcoin security
Sidechains and Bitcoin security
Tim Swanson9.9K views
Primer to smart contracts, smart property, trustless asset management by Tim Swanson
Primer to smart contracts, smart property, trustless asset managementPrimer to smart contracts, smart property, trustless asset management
Primer to smart contracts, smart property, trustless asset management
Tim Swanson11.6K views

Recently uploaded

When Sex Gets Complicated: Porn, Affairs, & Cybersex by
When Sex Gets Complicated: Porn, Affairs, & CybersexWhen Sex Gets Complicated: Porn, Affairs, & Cybersex
When Sex Gets Complicated: Porn, Affairs, & CybersexMarlene Maheu
85 views73 slides
unidad 3.pdf by
unidad 3.pdfunidad 3.pdf
unidad 3.pdfMarcosRodriguezUcedo
117 views38 slides
S1_SD_Resources Walkthrough.pptx by
S1_SD_Resources Walkthrough.pptxS1_SD_Resources Walkthrough.pptx
S1_SD_Resources Walkthrough.pptxLAZAROAREVALO1
64 views57 slides
Monthly Information Session for MV Asterix (November) by
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)Esquimalt MFRC
72 views26 slides
Collective Bargaining and Understanding a Teacher Contract(16793704.1).pptx by
Collective Bargaining and Understanding a Teacher Contract(16793704.1).pptxCollective Bargaining and Understanding a Teacher Contract(16793704.1).pptx
Collective Bargaining and Understanding a Teacher Contract(16793704.1).pptxCenter for Integrated Training & Education
95 views57 slides
Relationship of psychology with other subjects. by
Relationship of psychology with other subjects.Relationship of psychology with other subjects.
Relationship of psychology with other subjects.palswagata2003
52 views16 slides

Recently uploaded(20)

When Sex Gets Complicated: Porn, Affairs, & Cybersex by Marlene Maheu
When Sex Gets Complicated: Porn, Affairs, & CybersexWhen Sex Gets Complicated: Porn, Affairs, & Cybersex
When Sex Gets Complicated: Porn, Affairs, & Cybersex
Marlene Maheu85 views
S1_SD_Resources Walkthrough.pptx by LAZAROAREVALO1
S1_SD_Resources Walkthrough.pptxS1_SD_Resources Walkthrough.pptx
S1_SD_Resources Walkthrough.pptx
LAZAROAREVALO164 views
Monthly Information Session for MV Asterix (November) by Esquimalt MFRC
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)
Esquimalt MFRC72 views
Relationship of psychology with other subjects. by palswagata2003
Relationship of psychology with other subjects.Relationship of psychology with other subjects.
Relationship of psychology with other subjects.
palswagata200352 views
The basics - information, data, technology and systems.pdf by JonathanCovena1
The basics - information, data, technology and systems.pdfThe basics - information, data, technology and systems.pdf
The basics - information, data, technology and systems.pdf
JonathanCovena1146 views
Education and Diversity.pptx by DrHafizKosar
Education and Diversity.pptxEducation and Diversity.pptx
Education and Diversity.pptx
DrHafizKosar193 views
AUDIENCE - BANDURA.pptx by iammrhaywood
AUDIENCE - BANDURA.pptxAUDIENCE - BANDURA.pptx
AUDIENCE - BANDURA.pptx
iammrhaywood117 views
Ch. 7 Political Participation and Elections.pptx by Rommel Regala
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptx
Rommel Regala111 views
Classification of crude drugs.pptx by GayatriPatra14
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptx
GayatriPatra14101 views
11.28.23 Social Capital and Social Exclusion.pptx by mary850239
11.28.23 Social Capital and Social Exclusion.pptx11.28.23 Social Capital and Social Exclusion.pptx
11.28.23 Social Capital and Social Exclusion.pptx
mary850239312 views
Narration lesson plan by TARIQ KHAN
Narration lesson planNarration lesson plan
Narration lesson plan
TARIQ KHAN61 views

Code is not law

  • 1. Code is not law If it was really law, it would be settled and we wouldn’t be having this conversation
  • 2. Disclaimer • The views expressed in this presentation are solely my own and do not necessarily represent the views of my employer or any organization I advise • I neither own nor have any trading position on any cryptocurrency • I am not a lawyer
  • 3. Why does C-i-n-L matter? • When validating transactions and code on a network: • How do we decide who has legal standing when something forks or breaks? • How do we decide who is liable when a hack or mistake occurs? • How do we decide who bears responsibility if a block reorg or orphan occurs? • How do we decide who is responsible for recourse and restitution? • How do we decide who has a contractual relationship to fulfill validating duties? • How do we decide who can enforce the rulings of disputes? • Or in short: when the system doesn’t behave like it was expected to, how do we decide who is at fault?
  • 4. If the cryptocurrency community could achieve governance / enforcement algorithmically, we already would have done that. We're having this meeting today because something broke. What now?
  • 5. Public / anarchic chains • Intentionally lack: • Terms of Service; End-User License Agreement; service-level agreement; consumer protections; customer service • Customer service handled solely via upvoting and retweeting on social media • They lack these contractual hooks because any such artifact in an anarchic chain leads to some "controller" who can be shut down • And because these systems were specifically designed around pseudonymous interactions: there are no linkages to external identification systems and no hooks into the traditional legal system • This may be desirable to specific groups of consumers however empirically the user experience (UX) for unsavvy users is extremely poor and filled with friction
  • 6. What does this look like in practice?
  • 7. Examples of off-chain governance / resolution • The DAO attack / counter attack / counter counter attack • On June 18, 2016 over 3.64 million ether (~$55 million) was drained from The DAO into a child DAO • Solutions carried out: massive off-chain social media debates leading to a hard fork • “Accidental” fees to miners • On August 28, 2013 a bitcoin user sent a 200 bitcoin fee ($23,518) that was processed by ASICMiner • Solution carried out: complaints on reddit leading to a purported refund • On April 25, 2015 a BitGo user, due to a software glitch, accidentally sent 85 bitcoins ($19,197) as a mining fee to AntPool • Solution carried out: complaints on reddit leading to a refund • On September 11, 2015 another user sent 4.6 bitcoins (worth $1,113) as a fee to AntPool • Solution carried out: Bitmain, the parent company, once again returned the fee to the user • On April 27, 2016 a user sent a 291 bitcoin fee (~ $137,000) that was packaged by BitClub Network, a pool in the Netherlands • Someone claiming to be a representative from BitClub claimed on Twitter they were trying to reach out and find the user but it is unclear if this was all just a ruse (part of a MLM scam?); half the fee (146 bitcoiions) was later donated to The Bitcoin Foundation
  • 9. Cont’d • Value overflow incident / CVE-2010-5139 • On August 15, 2010 block 74638 contained 184.4 billion bitcoins • Solution: Hard fork / soft fork (depends on who you talk to) • On March 11, 2013 an accidental fork occurred and 24 blocks (600 bitcoins) were eventually orphaned (version 0.7 and version 0.8) • Solution: coordination on IRC via mining pools, exchanges, and developers • Losers: BTC Guild (which mined some of the blocks), OKPay (hit by a double-spend) • Bitfinex hack (among many other hacks of unregulated exchanges) • On August 2, 2016 at least 119,756 bitcoins (~$66 million) were stolen* from Bitfinex • Solutions carried out: coordination with off-chain law enforcement; massive social media debates; socialized losses of 36% across all accounts including non-bitcoin assets
  • 10. A (brief) anatomy of a hack The first 10 blocks that included transactions from the August 2016 Bitfinex hack were built into blocks by the following pools (listed chronologically): • BTCC Pool (mined the first block of the hack) • AntPool • ViaBTC • AntPool • BTCC Pool • BW Pool • Bitfury • ViaBTC • F2Pool • F2Pool
  • 12. Restitution? • 9 out of the first 10 blocks that included the Bitfinex coins were built by pools operating in a country that has different data privacy / property laws than those in the West • How does operating in this jurisdiction (China) impact the (future) answers from the same questions on slide #3? (i.e., laws are different everywhere) • Can mining pool operators be held liable for some damages, especially as news becomes more widespread? • What kind of risk monitoring will the market and regulators place onto the market? • E.g., via analytics / data science you can see the exact transactions just by looking at the blockchain • There are about 10 companies that now provide this kind of risk / threat modeling to compliance teams and law enforcement
  • 13. Ethereum hard fork • On July 20, 2016 – multiple stakeholders in the Ethereum ecosystem initiated a purposeful hard fork at block height 1920000 • Both block 1920000 and block 1920001 were mined by BW.com • Sidenote: BW.com is also a prominent pool for Bitcoin • If financial instruments from a regulated institution were sent to miners during the transition phase and are no longer accessible because the instruments were sent to the “deprecated” chain, who is to blame and bears responsibility? • Which party is supposed to provide compensation and restitution?
  • 14. What happened after the fork?
  • 17. Common theme of anarchic chains: governance and dispute resolution continues to be handled off-chain via social media and traditional legal infrastructure (e.g., courts)
  • 18. Because of the intentional lack of ties into legal infrastructure, anarchic / public blockchains operate on the premise of caveat emptor
  • 19. This creates a complicated, friction-full experience for unsavvy users
  • 20. What if you link the code to legal prose (and vice-versa)?
  • 21. Let’s review a few alternatives • Chains, ledgers, and code tied directly into legal infrastructure and institutions by default are under development • Examples of alternatives: • Ricardian Contracts • Barclays: Smart Contract Templates • Eris: dual integration • Corda • Sidebar: Robert Sams and his definition of ‘distributed ledgers’ • See also: CommonAccord as well as Tezos – a self-amending chain
  • 22. Ricardian Contract / Ian Grigg • A single document that is • a) a contract offered by an issuer to holders, • b) for a valuable right held by holders, and managed by the issuer, • c) easily readable by people (like a contract on paper), • d) readable by programs (parsable like a database), • e) digitally signed, • f) carries the keys and server information, and • g) allied with a unique and secure identifier.
  • 24. Josh Stark; and Barclays • Proposed definitions which are distinctly different than what C-i-L proponents make: • “smart legal contracts” • where the agreement is a legal agreement, which is then capable of automatic execution in software • “smart contract code” • which may not necessarily be linked to a formal legal agreement, yet must be executed automatically
  • 25. Corda / Richard Brown • Our starting point is individual agreements between firms (“state objects”, governed by “contract code” and associated “legal prose”). We reject the notion that all data should be copied to all participants, even if it is encrypted. • Secondly, our focus is on agreements: the need to link to legal prose is considered from the start. We know there will still always be some disputes and we should specify right up front how they will be resolved. • Thirdly, we take into the account the reality of managing financial agreements; we need more than just a consensus system. We need to make it easy to write business logic and integrate with existing code; we need to focus on interoperability. And we need to support the choreography between firms as they build up their agreements.
  • 26. Why should you care about how other platforms are handling legal prose and contract code?
  • 27. Tldr: if you don't say up front how problems will be resolved, then anything goes ... which means you eventually end up in court which is a bit self- defeating for an anarchic chain. To solve this problem a community needs to state up front how the disputes will be resolved in the contract itself.
  • 28. What does this have to do with Ethereum or other anarchic chains?
  • 29. ETH and ETC and others down the line • Because there is no de jure authority in an anarchic chain, no one can legitimately claim which chain is the “right” one • As a consequence, lacking ties into legal infrastructure, there is no recognized external authority that can legitimately claim which fork of Bitcoin or Ethereum is the ‘One True Chain.’ • Instead there are other attempts to attest to which chain is supposed to be the de facto chain: • E.g., via PoW / PoS, the chain code, the smart contract, the community, the Foundation, the devs and other stakeholders.
  • 30. Cont’d • In other words, public blockchains, contrary to the claims on social media, are not “law” because they do not actually tie into the legal infrastructure which they were purposefully designed to skirt • They do not handle disputes on-chain: leaving it to a nebulous, ill-defined handwavy governance process pitting miners versus developers versus users versus commercial companies and so forth • This is visible during the current ETH versus ETC debates as well as the Bitcoin Core versus Bitcoin Classic debates (e.g., private conferences for miners, sock puppets, censorship)
  • 31. Any potential solutions for the Ethereum community?
  • 32. Ian Grigg’s suggestion for Ethereum 1. there is a chain agreement to which all abide. 2. the chain agreement says in prose that ‘we accept smart contracts as binding.’ 3. proper smart contracts include legal prose that refers all T&C to the code. 4. dispute resolution is set in 1 and can be overridden in 3. 5. the no-brainer dispute resolution is Arbitration before an arbitrator chosen under community-written rules. Once agreed, Arbitration provides substantial protection from civil claims "to arbitration you go!" and also provides the gravitas to order a hard fork. It can also accommodate psuedonyms.
  • 33. Conclusions • Empirically, mistakes can and do continue to be made on public / anarchic chains but they lack any native on-chain mechanism to directly enforce / govern off-chain actions and data • As a result: if you are involved in above-board commercial activity, attempting to rectify and hold those liable for their contractual responsibilities is difficult on anarchic chains • If your assumption is that traditional legal infrastructure and identities may be required and used during the commercial transaction then permissioned ledgers / “archy” chains are fit-for- purpose for your operation

Editor's Notes

  1. First presented at the Ethereum Palo Alto meetup on August 7, 2016: http://www.meetup.com/EthereumSiliconValley/events/233053122/ I would like to thank Ian Grigg for his constructive feedback on these slides.
  2. Source: http://www.ofnumbers.com/2015/11/04/a-few-known-bitcoin-mining-farms/ And: http://motherboard.vice.com/read/someone-tried-to-pay-5-in-bitcoin-sent-137k-instead And: http://www.coindesk.com/bitcoin-foundation-donation-mining-pool/
  3. Source: http://www.kwm.com/en/knowledge/insights/smart-contracts-open-source-model-dna-digital-analogue-human-20160630 And: https://epicenterbitcoin.com/podcast/142/
  4. Source: http://www.ofnumbers.com/2016/07/21/archy-and-anarchic-chains/ And: http://www.coindesk.com/bitfinex-bitcoin-hack-know-dont-know/
  5. Source of image: http://www.americanbanker.com/news/law-regulation/did-regulatory-meddling-cause-bitfinex-hack-1090569-1.html
  6. Source: https://twitter.com/BlockSeer/status/761975450587402240
  7. E.g., was roughly 3 hours between 1st block with Bitfinex coins and 20th block – but they lack coordinate real-time monitoring Timestamps: 2016-08-02 08:54:19 2016-08-02 11:50:09
  8. Source: http://www.ofnumbers.com/2016/07/21/archy-and-anarchic-chains/
  9. Source: http://slacknation.github.io/medium/13/13.html
  10. Source: http://slacknation.github.io/medium/13/13.html
  11. Source: http://iang.org/papers/ricardian_contract.html
  12. Source: https://twitter.com/iang_fc/status/600329193772195840
  13. Source: http://www.coindesk.com/making-sense-smart-contracts/ And: http://arxiv.org/abs/1608.00771
  14. Source: https://gendal.me/2016/04/05/introducing-r3-corda-a-distributed-ledger-designed-for-financial-services/
  15. Source: personal correspondence August 3, 2016