Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ENS on Starknet at StarkWare Session

ENS on Starknet at StarkWare Session

Makoto Inoue

February 04, 2023
Tweet

More Decks by Makoto Inoue

Other Decks in Technology

Transcript

  1. ENS on Starknet
    matoken.eth
    twitter: @makoto_inoue
    StarkWare Sessions
    5th Feb 2023

    View full-size slide

  2. What is ENS?
    ENS offchain integration
    ENS on L2 and Starknet
    01.
    02.
    03.

    View full-size slide

  3. What is ENS?

    View full-size slide

  4. @ensdomains
    What is ENS?
    0x5a384227b65fa093dec...

    View full-size slide

  5. @ensdomains
    1. Ethereum Name Service
    matoken.eth

    View full-size slide

  6. @ensdomains
    2. Dweb

    View full-size slide

  7. @ensdomains
    3. Avatar
    Text Record

    View full-size slide

  8. @ensdomains
    POAP x IYK x ENS

    View full-size slide

  9. ENS Offchain integration

    View full-size slide

  10. @ensdomains
    ENS ❤ Argent

    View full-size slide

  11. @ensdomains
    ENS 💔 Argent

    View full-size slide

  12. @ensdomains
    - 3 request model
    - Revert, Request, Verify
    Solution 1: CCIP-read (EIP 3668)
    Secure Offchain data retrieval

    View full-size slide

  13. @ensdomains
    Solution 2: Wildcard
    .
    .eth
    .matoken.eth
    *.matoken.eth
    resolve(“a.matoken.eth”)
    resolve(“a.matoken.eth”)
    L2/Offchain

    View full-size slide

  14. @ensdomains
    Example: Coinbase Wallet (cb.id)

    View full-size slide

  15. @ensdomains
    cb.id

    View full-size slide

  16. @ensdomains
    cb.id

    View full-size slide

  17. @ensdomains
    lens.xyz

    View full-size slide

  18. ENS on L2 and Starknet

    View full-size slide

  19. @ensdomains
    Offchain
    - DBMS / Side chains
    - No or little gas
    - Truested
    - In Production
    - cb.id/.lens
    Offchain vs L2
    L2
    - Optimistic/ZK Rollup
    - Little gas
    - On chain verifiable
    - Trust Minimized
    - No production (Yet)
    - POC on Optimism/Arbitrum

    View full-size slide

  20. @ensdomains
    L2 integration per application/wallet
    foo.cb.id
    bar.cb.id
    baz.cb.id
    foo.argent.xyz
    bar.argent.xyz
    baz.argent.xyz
    foo.lens.xyz
    bar.lens.xyz
    baz.lens.xyz
    cb.id
    argent.xyz
    lens.xyz
    Offchain

    View full-size slide

  21. @ensdomains
    - 1. eth_GetProof
    - 2. Check L2 state root on L1
    - 3. Verify Storage Proof with
    Merkle Tree Lib
    L2 (Optimistic)Resolver

    View full-size slide

  22. @ensdomains
    - 1. eth_GetProof
    - 2. Check L2 state root on L1
    - 3. Verify Storage Proof with
    Merkle Tree Lib
    L2 (Optimistic)Resolver

    View full-size slide

  23. @ensdomains
    - 1. eth_GetProof
    - 2. Check L2 state root on L1
    - 3. Verify Storage Proof with
    Merkle Tree Lib
    L2 (Optimistic)Resolver

    View full-size slide

  24. @ensdomains
    - Non EVM
    - Different Address Format
    - Different hash function/prover
    - (pedersen over keccak256)
    Starknet / Zk Rollup

    View full-size slide

  25. @ensdomains
    - [✔] STRK Address format
    - [ ] pathfinder_getProof
    - [ ] pedersen hash
    - [ ] ENS contracts in Cairo
    Path to ENS on Starknet

    View full-size slide

  26. @ensdomains
    Enthusiastic Community
    https://discuss.ens.domains/t/ccip-implementation-for-ens-on-starknet/15691

    View full-size slide

  27. Thanks
    matoken.eth
    twitter: @makoto_inoue
    StarkWare Sessions
    5th Feb 2023

    View full-size slide