1 of 66

The Multichain for Auditors

Ali Atiia

Founder yAcademy|yAudit

@AliAtiia_

yAcademy

https://yacademy.dev/fellowships

2 of 66

Prelude

3 of 66

An aspiring blockchain auditor wonders: where should invest my time?

4 of 66

An aspiring blockchain auditor wonders: where should invest my time?

  • Programming languages: generic, DSLs, restricted X ∊ {Rust, Haskell, Java, Golang, ..}
  • Domains: DeFi, Infra, ZK, …
  • Blockchains: sharded, monolithic, shared-security, sovereign, ..

5 of 66

An aspiring blockchain auditor wonders: where should invest my time?

  • Programming languages: generic, DSLs, restricted X ∊ {Rust, Haskell, Java, Golang, ..}
  • Domains: DeFi, Infra, ZK, …
  • Blockchains: sharded, monolithic, shared-security, sovereign, ..

Go where the devs are

Go where the devs are going

6 of 66

An aspiring blockchain auditor wonders: where should invest my time?

  • Programming languages: generic, DSLs, restricted X ∊ {Rust, Haskell, Java, Golang, ..}
  • Domains: DeFi, Infra, ZK, …
  • Blockchains: sharded, monolithic, shared-security, sovereign, ..

Where are develops going?

7 of 66

So where do developers go?

I have a theory…

8 of 66

The capital of a software developer is her time and skill. When deploying this capital, she needs to optimize for:

(1) efficiency: minimum time to get her software out into the wild.�(2) effectiveness: maximum reach and durability of her software.

9 of 66

Problem statement: what is the overarching domain-, context- and scale-independent law that has thus far held over the past 6–7 decades of software evolution? What evolutionary adaptations have emerged in order to maximize the efficiency and effectiveness constraints of software development?

10 of 66

Solution Approach: apply the universal law of the outsourcing of concerns thru abstraction to blockchain development. What concerns can be outsourced to blockchain networks which could not have otherwise been abstracted away?

Problem statement: what is the overarching domain-, context- and scale-independent law that has thus far held over the past 6–7 decades of software evolution? What evolutionary adaptations have emerged in order to maximize the efficiency and effectiveness constraints of software developers?

11 of 66

Solution Approach: apply the universal law of the outsourcing of concerns thru abstraction to blockchain development. What concerns can be outsourced to blockchain networks which could not have otherwise been abstracted away?

Problem statement: what is the overarching domain-, context- and scale-independent law that has thus far held over the past 6–7 decades of software evolution? What evolutionary adaptations have emerged in order to maximize the efficiency and effectiveness constraints of software developers?

12 of 66

Solution Approach: apply the universal law of outsourcing of concerns thru abstraction to blockchain development. What concerns can be outsourced to blockchain networks which could not have otherwise been abstracted away?

Problem statement: what is the overarching domain-, context- and scale-independent law that has thus far held over the past 6–7 decades of software evolution? What evolutionary adaptations have emerged in order to maximize the efficiency and effectiveness constraints of software developers?

Design: developers will outsource their trust concerns to a durably reliable and secure API provider, one that most satisfies the “hook-it-and-forget-it” principle.

13 of 66

Solution Approach: apply the universal law of outsourcing of concerns thru abstraction to blockchain development. What concerns can be outsourced to blockchain networks which could not have otherwise been abstracted away?

Problem statement: what is the overarching domain-, context- and scale-independent law that has thus far held over the past 6–7 decades of software evolution? What evolutionary adaptations have emerged in order to maximize the efficiency and effectiveness constraints of software developers?

Design: developers will outsource their trust concerns to a durably reliable and secure API provider, one that most satisfies the “hook-it-and-forget-it” principle.

Implementation: sharded blockchains have the most viable path towards durable security.

14 of 66

Solution Approach: apply the universal law of outsourcing of concerns thru abstraction to blockchain development. What concerns can be outsourced to blockchain networks which could not have otherwise been abstracted away?

Problem statement: what is the overarching domain-, context- and scale-independent law that has thus far held over the past 6–7 decades of software evolution? What evolutionary adaptations have emerged in order to maximize the efficiency and effectiveness constraints of software developers?

Design: developers will outsource their trust concerns to a durably reliable and secure API provider, one that most satisfies the “hook-it-and-forget-it” principle.

Implementation: sharded blockchains have the most viable path towards durable security

Falsification: If monolithic or app-specific roll-your-own-security chains proliferate, the our thesis above is wrong, and vice versa.

15 of 66

Solution Approach: apply the universal law of outsourcing of concerns thru abstraction to blockchain development. What concerns can be outsourced to blockchain networks which could not have otherwise been abstracted away?

Problem statement: what is the overarching domain-, context- and scale-independent law that has thus far held over the past 6–7 decades of software evolution? What evolutionary adaptations have emerged in order to maximize the efficiency and effectiveness constraints of software developers?

Design: outsource your trust concerns to a durably reliable and secure API provider, one that most satisfies the “hook-it-and-forget-it” principle.

Implementation: sharded blockchains have the most viable path towards durable security

Falsification: if monolithic or app-specific roll-your-own-security chains proliferate, the thesis presented in this article would be invalidated, and vice versa.

Extensions: the law of abstraction of concerns will continue to shape software evolution into the future.

We can observe glimpses of its future effects through the emerging new layers of abstractions (top of the stack):

  • IaaS, PaaS, ..
  • low-, no-, and visual-programming.
  • AI-assisted programming�

16 of 66

Thesis summary:

  • Concerns want to be outsourced
  • Trust is *the* major concern and raison d'être of blockchains
  • Sharded blockchains are most likely to provide durable security
  • That’s where the devs are most likely to go
  • Therefore that’s where you should invest your time as an auditor

17 of 66

In short ..

❌ Top-down “hard work”: dig deep into whitepapers, blog posts, and github codebases for every project

✅ Bottom-up “smart work”: identify what makes an ecosystem viable, then skim ahead and see if you can find that thing in each project

18 of 66

In short ..

❌ Top-down “hard work”: dig deep into whitepapers, blog posts, and github codebases for every project

✅ Bottom-up “smart work”: identify what makes an ecosystem viable, then skim ahead and see if you can find that thing in each project

A path to durable security

19 of 66

Blockchain Tech Recap

20 of 66

The 3 Major Milestones

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

21 of 66

  • Paradigm shift in human coordination
  • App-specific: coin transfer, “money”
  • State machine is not fit for building layers of abstraction on top
  • Writing Script scripts ( ) is like trying to do construction work with a swiss army knife

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

22 of 66

  • Paradigm shift in human coordination
  • App-specific: coin transfer, “money”
  • State machine is not fit for building layers of abstraction on top
  • Writing Script scripts ( ) is like trying to do construction work with a swiss army knife

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

23 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

  • Lots of Bitcoin clones 2011 ~ 2017 ish … the birth of the “alt” paradigm:
    • Sidekick……………………………………………………….. Litecoin
    • SaaS-y………………………………………………………….. Dash
    • Private……………..………………………………………….. Zcash/Monero
    • Cheap .................................................................. Bitcoin Cash
    • Fun ………………………………………………………………. Doge

24 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

  • Auditing:
    • Lots of bugs in Bitcoin codebase in early years
    • Stakes weren’t high enough yet, so no biggy
    • Not much built with “Script”, unsurprisingly, so not much auditing demand -still the case today and (imo) forever

25 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

  • Proper virtual machine atop which higher-level langs can compile to
  • Bad design choices recognized immediately
  • Improvements continue to this day, some choices are stuck probably forever

26 of 66

  • Proper virtual machine atop which higher-level langs can compile to
  • Bad design choices recognized immediately
  • Improvements continue to this day, some choices are stuck probably forever

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

27 of 66

-Auditing:

      • dApps started trickling immediately after launch: prediction markets, ENS, DAOs, ..
      • 2017: the ERC20 explosion (ICOs)
      • Still not a massive demand for auditing, till …
      • DeFi 2019-2020 .. auditing demands explodes

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

28 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

29 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

30 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

31 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

32 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

33 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

34 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

35 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

36 of 66

Haskell

PL Popularity

Marketing

Reality

37 of 66

38 of 66

39 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

40 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

41 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

42 of 66

43 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

44 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

45 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

“Bring back the SaaS” ………………………………………………………….... Solana, Dfinity

46 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

“Bring back the SaaS” ………………………………………………………….... Solana, Dfinity

47 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

“Bring back the SaaS” ………………………………………………………….... Solana, Dfinity

48 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

“Bring back the SaaS” ………………………………………………………….... Solana, Dfinity

“We can do sharding better”....................................................... Polkadot, NEAR

49 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

“Bring back the SaaS” ………………………………………………………….... Solana, Dfinity

“We can do sharding better”....................................................... Polkadot, NEAR

50 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

“Bring back the SaaS” ………………………………………………………….... Solana, Dfinity

“We can do sharding better”....................................................... Polkadot, NEAR

51 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

“Bring back the SaaS” ………………………………………………………….... Solana, Dfinity

“We can do sharding better”....................................................... Polkadot, NEAR

52 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

“Bring back the SaaS” ………………………………………………………….... Solana, Dfinity

“We can do sharding better”....................................................... Polkadot, NEAR

53 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

“Bring back the SaaS” ………………………………………………………….... Solana, Dfinity

“We can do sharding better”....................................................... Polkadot, NEAR

54 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2017: ICO wave spurred an explosion of chains

“Ethereum killing” EVM clones…………………………..……….…… NEO anyone?

Shiny new consensus algo ................................................... Ava, Algorand, Hedera

“Let’s get weird”..................................................................................... Rchain lol

Formal verification snake oil.................................................... Cardano, Zilliqa, Tezos

UTXO cult………………………………………………………………………………....……… Cardano, Nervos

“Sidechain-ing is a feature not a bug”……………………... Cosmos

“Bring back the SaaS” ………………………………………………………….... Solana, Dfinity

“We can do sharding better”....................................................... Polkadot, NEAR

55 of 66

  • Auditing 2017-2022:
    • EVM and clones: most of the demand is here
    • New runtimes with potential: mainly Rust and Rust-inspired DSLs
    • You can safely ignore DX-unfriendly runtimes, such as those tailored for “muh formal verification” … there is ~zero demand for them.

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

56 of 66

2020 - 2021:

    • Interactive fraud proofs win
    • ZK Rollups surprise everyone

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

57 of 66

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

2020 - 2021:

    • Interactive fraud proofs win
    • ZK Rollups surprise everyone

58 of 66

  • Auditing:
    • Smart contracts:
      • nothing new to learn in terms of source code
      • L1 contracts:
        • Fraud proof machinery, deposit/withdraw, …
        • ZKP verifier contracts
    • Infra:
      • ORU: prevailing paradigm of “sandwiching the EVM” results in minimal diff with go-ethereum
      • ZKRU: extremely high demand to audit ZK circuits (prover)

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

59 of 66

  • Auditing:
    • Smart contracts:
      • nothing new to learn in terms of source code
      • L1 contracts:
        • Fraud proof machinery, deposit/withdraw, …
        • ZKP verifier contracts
    • Infra:
      • ORU: prevailing paradigm of “sandwiching the EVM” results in minimal diff with go-ethereum
      • ZKRU: extremely high demand to audit ZK circuits (prover)

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

Solidity/Cairo

Rust/Circom

60 of 66

  • Auditing ZK:
    • Mina ecosystem (a recursive SNARK-based blockchain)
    • ZK dApps (voting, gaming, rate-limiting)
      • This is buzzing and may explode any minute
      • Mostly in Circom now
    • ZK Rollups

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

61 of 66

  • Auditing ZK:
    • Mina ecosystem (a recursive SNARK-based blockchain)
    • ZK dApps (voting, gaming, rate-limiting)
      • This is buzzing and may explode any minute
    • ZK Rollups

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

Probability

Number Theory

Abstract Algebra

Cryptography

Complexity

Theory

62 of 66

  • Auditing ZK:
    • Mina ecosystem (a recursive SNARK-based blockchain)
    • ZK dApps (voting, gaming, rate-limiting)
      • This is buzzing and may explode any minute
    • ZK Rollups

Nakamoto Consensus

EVM

Rollup

2009

2015

2019

Probability

Number Theory

Abstract Algebra

Cryptography

Complexity

Theory

63 of 66

Auditing the Multichain�(tooling)

EVM

Rust

ZK

Ethereum

Geth-fork chains

Rollups sandwiches

Rollup smart contracts

WASM smart contracts

Infra

Smart-contract verifiers

Infra (provers)

zk-dApps

Circom

64 of 66

Auditing the Multichain�(ecosystems)

Ethereum

Rollups

Polka/NEAR

Based on “Durable Security” Thesis

65 of 66

Further reading:�

  • The Investment Thesis of a Blockchain Developer

article on GourmetCrypto substack�

  • Search my twitter feed:

[project_name] from:aliatiia_

66 of 66

Thanks