<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/feeds/rss-style.xsl"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Sylve Chevet</title>
        <link>https://sylve.org/</link>
        <description>Sylve's place on the Internet</description>
        <lastBuildDate>Fri, 13 Nov 2026 11:35:55 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>Astro</generator>
        <language>en-US</language>
        <copyright>Copyright © 2026 Sylve Chevet</copyright>
        <atom:link href="https://sylve.org/rss.xml" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[All my blockchain friends are dead]]></title>
            <link>https://sylve.org/all-my-blockchain-friends-are-dead</link>
            <guid isPermaLink="false">https://sylve.org/all-my-blockchain-friends-are-dead</guid>
            <pubDate>Fri, 23 Jan 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[There was madness in any direction, at any hour. If not across the Bay, then up the Golden Gate or down 101 to Los Altos or La Honda... You could strike sparks anywhere. There was a fantastic universa...]]></description>
            <content:encoded><![CDATA[<blockquote>
<p>There was madness in any direction, at any hour. If not across the Bay, then up the Golden Gate or down 101 to Los Altos or La Honda... You could strike sparks anywhere. There was a fantastic universal sense that whatever we were doing was right, that we were winning...<br />
And that, I think, was the handle—that sense of inevitable victory over the forces of Old and Evil. Not in any mean or military sense; we didn’t need that. Our energy would simply prevail. There was no point in fighting — on our side or theirs. We had all the momentum; we were riding the crest of a high and beautiful wave...<br />
So now, less than five years later, you can go up on a steep hill in Las Vegas and look West, and with the right kind of eyes you can almost see the high-water mark—that place where the wave finally broke and rolled back.<br />
— <em>Fear and Loathing in Las Vegas</em>, Thompson</p>
</blockquote>
<p>I had a realization recently.</p>
<p>I'm a bit of a dinosaur. Specifically this one:</p>
<p><img src="https://sylve.org/images/posts/all-my-blockchain-friends-are-dead/71up6o42wml.webp" alt="" /></p>
<p>I've been in the blockchain ecosystem since 2018. First as an employee, then as a founder in the burgeoning L2, NFT, onchain gaming ecosystems. Blockchain had mainly been known for the financial exuberance and speculation it enabled, epitomized by the ICO craze. A crowd of builders set out to explore other areas, moved by the deep belief that "there must be something else out there", something more than <em>token go up</em>. I've dreamt many dreams, met many people who shared those dreams. I built, theorized, wrote and commented on Twitter threads, joined hundreds of Telegram chats, and interacted with people across the world who glimpsed the same future. These were special times. There were so many new concepts and everyone was excited about them. DAOs, onchain physics, ZK. Could a game have a GDP? Would people treat these worlds as real and tangible as the real world? It felt like riding the biggest wave in the world, reinventing computing, art, and building businesses to make it happen.</p>
<p>There seemed to be an infinite supply of <a href="https://x.com/dcfpascal_/status/1534853901047934976">weird and colourful people</a> constantly dropping their humdrum Web2 lives to swell the ranks of the Web3 zealots, as if attracted by some invisible and nerdy pied piper. I met my friend <a href="https://x.com/liamzebedee">Liam</a> through his tweets, specifically his incredible <a href="https://liamz.co/tech-blog/2022/04/21/a-deep-dive-into-starknet-and-cairo.html">deep dive into Cairo</a> and thought that, yep, this is the place, this is where I belong.</p>
<p>::x{url="<a href="https://x.com/liamzebedee/status/1515985033856974851">https://x.com/liamzebedee/status/1515985033856974851</a>"}</p>
<p>Everyone posted, and everyone reacted. People <em>cared</em>.</p>
<p>Every day brought something new to ponder and get excited about. I remember the beginning of the Starknet gaming ecosystem. I remember <a href="http://guiltygyoza.xyz/">GuiltyGyoza</a> putting the three-body problem onchain. I remember <a href="https://ronan.eth.limo/">Ronan</a> building a sound engine in Solidity. I remember the release of Loot and how <em>sniped</em> everyone was. It felt like witnessing Duchamp flipping a urinal upside-down in 1917 and realizing that the art world had also been upended.</p>
<p>::x{url="<a href="https://x.com/dhof/status/1431316631934967815">https://x.com/dhof/status/1431316631934967815</a>"}</p>
<p>I remember how we all felt when the <a href="https://0xparc.org/blog/autonomous-worlds">Autonomous Worlds</a> paper came out, articulating the zeitgeist our little scene was manifesting. I remember the fundraises, the excitement, the <a href="https://opensea.io/item/ethereum/0xeaf09de2d4b2c5d0682cb0870140e40c3b216a57/7">meetups</a>, the drama, the hopes. It felt like the biggest thing in the world.</p>
<p>But the dreams are no more. And my friends are gone.</p>
<p>I can't really put my finger on when it started to happen. At some point you realize Twitter gets quieter. Then you hear that a company you know failed to raise a round, then wound down. GitHub repos go silent. Teams scatter. People move on. Some folks write threads asking where it all went wrong, and you realize it has been too quiet for quite some time already. We sobered up. We packed up. We moved on.</p>
<p>It took me a bit to understand what had happened, how I was processing it. Last year, I met up with a fellow onchain gaming builder, someone I had heard of but never actually met in person, a brother in arms. We had experienced the same events, through our respective screens. Nostalgia, tinted with the purple and grey hues of <em>grief</em>.</p>
<p>[Then you see TrumpCoin going to the moon, erasing years of belief that <em>blockchain is not just grift and stupid tokens</em>. And you also feel disgusted.]</p>
<p>I read a post recently about someone realizing they were part of a movement that came to pass. She had met incredible people interested in the same things as her, that it brought her so much, and that it was now over.</p>
<p>It feels like these types of online movements are now harder to build and sustain. At some point the engine stalled. I wonder if the trend will change, outside of some delineated business-oriented and algorithm-friendly topics (claude-MCP builders, unionize!), or if we've simply slopped our way out of it.</p>
<p>One of the truly specific things about building in the blockchain ecosystem is that you're constantly living in the future, a future that is frustratingly slow to meet the present. I feel like I've experienced three or four different waves that each yielded some form of innovation and excitement, but ultimately broke and rolled back, leaving behind bombastic threads and techno-esoteric think pieces on the sand. It hurts every time. I miss the ideals, I miss the ideas, but I mostly miss my friends. It's tough to pick yourself up and do it all again.</p>
<p>Today (2026-01-23) Farcaster was sold to Neynar, signaling the end of decentralized social media, or at least of this current iteration. I wasn't part of this particular shard of the blockchain dream but <em>I Know That Feel Bro</em>.</p>
<p><img src="https://sylve.org/images/posts/all-my-blockchain-friends-are-dead/43cm1a.jpg" alt="Feels bad man" /></p>
<p>I wonder if something similar happened to early Internet folks, this <em>grief for the future that didn't happen</em>. Did they get angry when they realized RSS feeds didn't pan out? When the Internet bubble burst because someone tried to put Radio on the Internet? That the Internet got bundled into a few datacenters we call the Cloud™️ rather than run on a million home servers?</p>
<p>I take solace in thinking the Internet happened over 60 years, and then all of a sudden. <a href="https://x.com/_ArnaudS_/">Arnaud</a> linked a 1979 memo by an early Apple employee taking a cold hard look at what it'll take for the dream of a computer world to actually happen.</p>
<p>::x{url="<a href="https://x.com/_ArnaudS_/status/1742841999357616556">https://x.com/_ArnaudS_/status/1742841999357616556</a>"}</p>
<p>Indeed, it sounds ludicrous. It was both way easier (we don't use discs to share data, we have a neat thing called "the Internet") and way trickier (yep, the social fabric has indeed been crumpled a bit and software engineering is still hard) than anyone had anticipated.</p>
<p>Sometimes, it just takes time.</p>
<p>On that note, I thought about the <a href="https://xkcd.com/1425/">XKCD comic <em>Tasks</em></a> recently.</p>
<p><img src="https://sylve.org/images/posts/all-my-blockchain-friends-are-dead/tasks-2x.png" alt="" /></p>
<p>It was published in 2014-09-24, more than ten years ago. And, indeed, it took in the ballpark of <em>"a research team and five years</em>" to achieve what seems "virtually impossible" in the comic, and about x1000 that to get to LLMs. But, in the end, it did happen. We've built something that passes the Turing test, that writes code faster than humans, that can talk, respond, generate images, and believable videos of Will Smith eating.</p>
<p>Sometimes, it just takes time.</p>
<p>I got into blockchain because it was the coolest thing in the world at the time. Programs that you can trust running on a computer that doesn't stop. It still feels like the future, even if AI has come out of its decades-long winter and stolen the crown for "hottest piece of tech to sacrifice your 20s to."</p>
<p>I'm still in the trenches. I still feel like today's not the end of history for blockchains.</p>
<p>Sometimes, it just takes time.</p>
]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wallets must be invisible]]></title>
            <link>https://sylve.org/wallets-must-be-invisible</link>
            <guid isPermaLink="false">https://sylve.org/wallets-must-be-invisible</guid>
            <pubDate>Tue, 11 Apr 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[I've previously waxed rhapsodic about account abstraction, today I want to talk about the best wallet possible: the one you don't know about. Current discourse about Web3 mass-adoption boils down to "...]]></description>
            <content:encoded><![CDATA[<p><em>I've previously <a href="../random-thoughts-on-account-abstraction/">waxed rhapsodic about account abstraction</a>, today I want to talk about the best wallet possible: the one you don't know about.</em></p>
<p>Current discourse about Web3 mass-adoption boils down to "we need better UX". Half of that is performance-related, blockchains are slow/expensive/wasteful, and half is about the primary medium of engagement with blockchain: wallets.</p>
<p>Plenty of bright folks are taking a crack at solving wallet UX. Usually the solution is a beautifully designed wallet with plenty of bells and whistles, using account abstraction to its fullest, or maybe an MPC wallet using moon maths to keep you secure (like <a href="https://www.ambire.com/">this</a>, <a href="https://www.coinbase.com/wallet">this</a> or <a href="https://twitter.com/family">this</a>). There's a plethora of options such as this 👇</p>
<p>::x{url="<a href="https://twitter.com/floguo/status/1645597339955118080">https://twitter.com/floguo/status/1645597339955118080</a>"}</p>
<p>My contrarian opinion is that none of this matter. Yes, it's the most beautiful wallet. Yes you've tackled very specific problems that plague wallets today. But you will not solve wallet UX and onboard 7Bn people by making wallets <em>more usable</em>, you will solve wallet UX by making wallets invisible.</p>
<h1>People don't want wallets</h1>
<p>Let's look at the current best-in-class experience for a Web3 DApp: Sorare. To start playing on Sorare you must create an account. One username/password later, you're onboarded the app and you can start trading (with various degrees of success).</p>
<p><img src="https://sylve.org/images/posts/wallets-must-be-invisible/real-visionary-stuff.webp" alt="Real visionary stuff" /></p>
<p>What happens in the background: Sorare deploys a wallet for you on StarkEx, but you're not aware of it. It's not advertised, it's completely abstracted away. They store the key for you but encrypt it with a password only you know.<sup class="footnote-ref"><a href="#fn1" id="fnref1">[1]</a></sup></p>
<p>This is basically the same for Torus/Web3auth/Plaid, and other "wallet as a service" services. <strong>The very sad thing is that you usually</strong> <strong>cannot</strong> <strong>reuse this wallet elsewhere</strong>. Users get app-specific wallets. So you win on the onboarding side (yay you onboarded users) and completely miss the point of Web3 (you've siloed them on an app).</p>
<p>Why aren't we deploying non-app-specific wallets? Because it's hard.</p>
<p>Without account abstraction, lower fees (and everything I talked about <a href="https://mirror.xyz/sylve.eth/Un2EYccIpfE3BDevwOf9hWWcSn2NsiRIivZlBLNX7Ag">here</a>) it's extremely difficult to hand out a wallet to user and expect them to not make mistakes. These services therefore resort to semi-custodial solutions: they do not <em>control</em> the users' wallets as in they can't make transaction on their behalf, but they're ultimately storing the key on their databases with various degrees of security.</p>
<p>The other reason we've come to deploy app-specific wallets is because we've come to believe that people actually want wallets.</p>
<p><img src="https://sylve.org/images/posts/wallets-must-be-invisible/wallets-meme.webp" alt="You need a wallet to own digital assets. People want digital assets. Yet people don't want wallets" /></p>
<p>Consider Gmail. It's a fantastic piece of software. People want to use Gmail. Turns out that, to use Gmail you need to create a Google account. Do people want to own a Google account? No. They want to use Gmail. You log in on Gmail, create an account, and you get going. Then you figure out you need a text editor, a spreadsheet, and (magic 🪄) your Google account works on Google Docs and Google Sheets! Huzzah!</p>
<p>Now imagine you start by telling people they need to create Google accounts. And that's the only thing you advertise. Accounts. Best account UX. Easy login. Login with my account. Great login. Wow. Much login. So many apps with my accounts.</p>
<p>This is what "best wallet UX" companies are trying to sell: people will use us because we're more usable and we're the best wallet around. I wouldn't give a damn. I don't give a damn about my Google account. I care about the apps.</p>
<p>That's what we're doing in Web3: we've started to believe that people <em>actually</em> want wallets. But the blueprint for wallets should be to become a Google Account: invisible and ubiquitous.</p>
<h1>World Wide Web Wallets</h1>
<p>Take a DApp, <a href="https://briq.construction/">briq</a> for example. Currently we ask users to own a wallet to log in and start playing around. That's a prerequisite, and that sucks. I'd love to have my grandparents use briq but wallets are too complicated. So they don't use briq and I'm sad.</p>
<p>Now picture the following flow: you arrive on briq, choose a username/password to sign up, and start playing around. You're happy. Now you go on another DApp, and reuse the same username/password and (magic 🪄) you login using the same <em>wallet</em>.</p>
<p>This is what <strong>Web Wallets</strong> like Argent's will be able to provide.<sup class="footnote-ref"><a href="#fn2" id="fnref2">[2]</a></sup></p>
<p>::youtube{url="<a href="https://www.youtube.com/watch?v=vUkSu5M8MkE">https://www.youtube.com/watch?v=vUkSu5M8MkE</a>"}</p>
<p>The key thing here is that <em>there is no wallet</em>, as in no wallet app or plugin. You did not have to download an extension, install an app or whatever. You login, confirm via email, and you're done. Similarly to a <a href="https://safe.global/">Safe</a>, you start from a website.</p>
<p>It's a real mindset shift because, so far, we thought that people wanted wallets so we're used to providing apps and plugins to serve that need. But the web wallet completely flips the script: the wallet (as an app) doesn't exist but the wallet (the blockchain object) does. <a href="https://mirror.xyz/sylve.eth/Un2EYccIpfE3BDevwOf9hWWcSn2NsiRIivZlBLNX7Ag">This is only possible with smart wallets</a>.</p>
<h1>WebAuthn them all</h1>
<p>Web Wallets are all well and good but I wouldn't trust myself with a password to achieve financial independence (that's why I trust banks).</p>
<p>Lucky for us there's a standard for this. The best way to onboard 7bn people on the blockchain will be to deploy a wallet for them using <a href="https://webauthn.guide/">WebAuthn</a>. This is what <a href="https://twitter.com/opclave/status/1641822931360661504">Opclave</a>, <a href="https://twitter.com/Cometh/status/1641728767864320001">Cometh</a>, and <a href="https://community.starknet.io/t/supporting-webauthn-on-starknet/3910">Cartridge</a> before them, have done.</p>
<p>WebAuthn is a set of APIs that allows for web applications to simplify and secure user authentication by using registered devices rather than username/passwords. Simply put, you authenticate with your smartphone rather than remember passwords, and the keys are stored within the smartphone's secure enclave. All popular smartphones are WebAuthn compatible and it is poised to become the de-facto standard for authentication.</p>
<p>Check out a real-life example of a Cartridge-Webauthn-powered onboarding for briq. Users scan a QR code, choose a username, authenticate through biometrics and <em>voila</em>. They receive a briq set on a wallet Cartridge has deployed for them, and the key is safely stored on their smartphone's secure enclave.</p>
<p>::x{url="<a href="https://twitter.com/briqNFT/status/1629037762874671106">https://twitter.com/briqNFT/status/1629037762874671106</a>"}</p>
<p><a href="https://cointelegraph.com/magazine/account-abstraction-supercharges-ethereum-wallets-dummies-guide/">CoinTelegraph tried it out during StarkWare sessions</a>:</p>
<blockquote>
<p>Magazine tries out the onboarding process for noobs at StarkWare Sessions in Tel Aviv, Israel where gaming wallet Cartridge is handing out limited edition briq NFTs.</p>
<p>The whole process takes less than 30 seconds and is completely intuitive. Users scan a QR code, choose a username, and then create a passkey using the phone's fingerprint scanner.</p>
<p>Existing crypto users will need to reconceptualize what they thought a crypto wallet was and how to access it. The noncustodial Cartridge Controller is actually a web-based wallet that interacts with Starknet. Instead of private keys, it makes use of Android or Apple "Passkeys," which are both based on the WebAuthn standard, an initiative to standardize user authentication for web apps using public-key crytography.</p>
</blockquote>
<p><img src="https://sylve.org/images/posts/wallets-must-be-invisible/cartridge-team.webp" alt="Bonus pic of the Cartridge, Realms &amp; briq team havin' fun with their respective mascots" /></p>
<p>To find their wallet again users just go on <a href="https://cartridge.gg/">cartridge.gg</a> and log-in again using the same smartphone. It's <em>that</em> easy.</p>
<p>WebAuthn is still pretty expensive to run on-chain (but L2s ftw) and the Apple enclave requires using the secp256r1 curve, which is a problem for EVM chains that can only use the secp256k1 curve (this is what the <a href="https://twitter.com/doganeth_en/status/1640062618353188865">Opclave</a> team achieved during their hackathon). But I'm not too worried we'll be able to solve this soon enough.</p>
<h1>Progressive wallet disclosure: less is more</h1>
<p>I recently had the pleasure to brainstorm with a company working on a web wallet and told them they were going the wrong direction because their widget looked like this:</p>
<p><img src="https://sylve.org/images/posts/wallets-must-be-invisible/trust-wallet-widget.webp" alt="This is trust wallet, but you get the point" /></p>
<p>When clicking on the "connect" button on briq the web wallet widget opened up and showed my ETH balance, the 20 different NFTs I own and my entire transaction history. I had to explain that users doesn't care about all that, <em>in that context</em>. You do not need that much information <em>on briq</em>. The only thing the user is going to care about on the briq DApp are briq-related assets and information. When you're on Google Sheet, you don't need to know that someone edited one of your Google Doc.</p>
<p>I believe the reason this specific web wallet widget looked like this is because the company thought people wanted a wallet. And so far, wallets have always looked like this, so I can't really blame them.</p>
<p>I came to think of this as <strong>progressive wallet disclosure</strong>. Don't throw every single functionality to a user, you should contextually and punctually show them what is relevant, reveal what the wallet is capable of <em>bit by bit</em>.</p>
<p>Let's consider a hypothetical user flow:</p>
<ul>
<li>Alice creates a WebAuthn-powered web wallet on briq using her iPhone. She might not even know she owns a wallet, she just likes the briq sets and wanted to buy one. We decide to sponsor her first 10 transactions on briq because she bought an NFT using her credit card.</li>
<li>Alice checks her profile on briq and decides to sell one of her own creations. She logs in on <a href="https://mintsquare.io">Mintsquare</a>, the Starknet NFT marketplace, by scanning a QR code and lists her NFT.</li>
<li>The NFT found a buyer! Suddenly Alice's wallet is filled with fresh ETH. She's curious about this magic Internet money and learns more about it. She also receives an email notification that her balance now exceeds $50 and she should add some more security options such as <a href="https://vitalik.ca/general/2021/01/11/recovery.html">social recovery</a> and velocity controls.</li>
<li>Alice can use a wide range of websites, like Zapper for DeFi and Showtime for NFTs, to see everything about her wallet and add or revoke security options, such as <a href="https://sarcophagus.io/">deadman switch</a>, <a href="https://twitter.com/argentHQ/status/1562454467714240513">session keys</a>, etc.</li>
<li>Building and selling more stuff, Alice discovers she has a good chunk of ETH and decides to start converting some into fiat. She authorizes an off-ramp protocol to sell some of her ETH every day and send the money to her bank account.</li>
<li>Six months down the line, Alice is completely crypto-pilled: she's using a smartphone app to track her portfolio, she even bought a hardware wallet to improve her security setup. Now, she decides to stake the rest of her ETH to help secure Ethereum and contribute to the world computer.</li>
</ul>
<p>In this example, Alice started with a simple NFT and moved all the way up to staking ETH. She never <em>had</em> to download an app or a browser extension. We never showed her <em>everything</em> her wallet can do on the first day, she discovered her superpowers over time, when it was <em>relevant</em>. Crucially, <em>she was</em> <em>always in control</em>: she had a key on her smartphone, powered by Apple's passkeys, and added more security controls over time. She never had to forfeit her autonomy to a third-party, she could always run a transaction or revoke authorizations.</p>
<p>You don't help people learn how to swim by throwing them into the pool and blame them when they drown. You get them floaters, you get them comfortable in the shallow end of the pool, and ease into the deep end.</p>
<h1>Dude, Where's my Wallet?</h1>
<p>Some fun stuff happens with invisible wallets:</p>
<ul>
<li><em>You don't know where your wallet is</em>: with the Cartridge wallet you <em>know</em> you have a wallet but you don't necessary know <em>where</em> it is. You just have keys, and they're like car keys: you can open you car, but you can forget where you parked. If the Cartridge user forgets about the cartridge.gg website, it's like you forgetting where you parked your car. It's important to tell users <em>where they can fall back on,</em> with a dashboard website for example. With Metamask, you don't have that problem because the little fox is always at the top right of your browser.</li>
<li><em>You don't know everything about your wallet</em>: if the wallet is only showing contextual information, you might not know that something has happened to it. You might not even know you got an airdrop because you might not know you have a wallet. Email or smartphone notifications seem like a logical solution.</li>
<li><em>Web3 people are lost, Web2 people are happy</em>: it's very difficult for web3-natives to understand they do not need to have a wallet app/plugin, that their wallet floats in the ether. They quickly get weary and think you're doing some custodial shenanigans. Web2 people are very happy, there's nothing new here, accounts have always worked this way. I think it's important to <em>not</em> cater to Web3-native needs here and tell them <a href="https://www.cnet.com/tech/mobile/steve-jobs-knew-iphone-would-be-iconic-more-than-2-billion-phones-later-he-was-right/">they'll get used to it</a>.</li>
</ul>
<h1>The NFT Checkout Opportunity</h1>
<p>What would be the best way to leverage the previously mentioned features?</p>
<p>One hint:</p>
<p><img src="https://sylve.org/images/posts/wallets-must-be-invisible/electric-capital-dev-report.png" alt="From Electric Capital: https://github.com/electric-capital/developer-reports/blob/master/dev_report_2022.pdf" /></p>
<p>Overwhelmingly, people are using blockchains for NFTs rather than DeFi. I think it's a great opportunity to do this 👇</p>
<p><img src="https://sylve.org/images/posts/wallets-must-be-invisible/checkout-flow.webp" alt="I wonder what's going to happen next" /></p>
<p>We should have a checkout flow where a user buys an NFT with their credit card and credits the NFT on their newly-created wallet (powered by WebAuthn). Now users have a wallet and we can show them all the cool stuff we have in Web3 land.</p>
<p>Some issues:</p>
<ul>
<li><em>Managing fiat &amp; crypto</em>: if in the end the "buy" action is performed on a smart contract, crypto-paying users can talk directly to the contract and be faster than fiat-paying users who'd need an on-ramp service. That can cause issues with auctions for example.</li>
<li><em>Payment processors become wallet companies and vice-versa</em>: let's say Paypal creates a checkout system to buy NFT, they'll need to be creating wallets and manage them, possibly offering more services for users. If a wallet company wants to offer checkout services to get people onboarded on their wallets, they'll need to start managing fiat.</li>
<li><em>A wallet with no ETH</em>: the funny thing with NFT-first people is their utter indifference to cryptocurrencies, they just don't care. That makes it difficult for them to pay their transaction fees. You can tackle this with paymasters, transaction sponsorship and possibly a monthly wallet fee to cover their fees.</li>
</ul>
<h1>To sum up the requirements</h1>
<p><img src="https://sylve.org/images/posts/wallets-must-be-invisible/start-from-apps.png" alt="Start from the apps and walk your way back to the account, not the other way around" /></p>
<ul>
<li><em>Users should be able to create wallets without a wallet app or extension</em>: that's why WebAuthn is so cool, the key is on your smartphone, backed by passkey.</li>
<li><em>Users should be able to use their wallets without holding cryptocurrencies</em>: that's what <a href="https://tokeny.com/gas-tank-on-polygon/">gas tanks</a> provide, you could also do some super fancy Paymaster or MEV-powered bundling stuff with ERC-4337, or simply have the main app or wallet sponsor the transactions. You get 10 txs for free, and then a monthly subscription.</li>
<li><em>Users should progressively discover their wallet</em>: don't shove all the functionalities in their face on the 1st day, ease them into it and allow them to take progressive steps towards more independence and control.</li>
<li><em>Users should always be in control</em>: start with a key held on a smartphone enclave and work your way up to a hardware wallet. Or don't. But the first step should not be a custodial or semi-custodial option.</li>
</ul>
<h1>Closing thoughts</h1>
<p>Folks that get most defensive about the idea of invisible wallets are crypto die-hards. You get things like "<em>you're giving too much power to Apple!</em>" or "<em>people will throw their independence away! Everyone must run a cold-storage setup!</em>"</p>
<p>WebAuthn, Web Wallets and such are <em>options</em>, it's not reducing the overall security level, it's providing more ways for people to engage with crypto. Don't worry, you can keep the tinfoil hat on.</p>
<p>It's somewhat reminiscent of an old debate regarding privacy where hardcore cypherpunks were adamant that everyone use pgp and hardcore cryptography stuff. Guess what, people don't care and forcing them doesn't work. But it doesn't mean that we shouldn't try raising privacy levels: that's why Signal and HTTPs exist. Privacy should be embedded - invisible.</p>
<p>Check out Mark Miller and Dean Tribble on why techno-radicalism doesn't work (9'27 in the video) 👇</p>
<p>::youtube{url="<a href="https://www.youtube.com/watch?v=HDKQulqVCQg">https://www.youtube.com/watch?v=HDKQulqVCQg</a>"}</p>
<p>Everyone can become crypto-fluent, but people must be able to make their first steps.</p>
<p>And, for that, wallets must be invisible.</p>
<hr />
<p>Thanks <a href="https://twitter.com/wraitii">@wraitii</a>, <a href="https://twitter.com/btchip">@btchip</a> for the brainstorms and review.</p>
<hr class="footnotes-sep" />
<section class="footnotes">
<ol class="footnotes-list">
<li id="fn1" class="footnote-item"><p>Gross oversimplification, don't @ me. <a href="#fnref1" class="footnote-backref">↩︎</a></p>
</li>
<li id="fn2" class="footnote-item"><p>The Argent Web Wallet is coming soon to a briq DApp near you, by the way. <a href="#fnref2" class="footnote-backref">↩︎</a></p>
</li>
</ol>
</section>
]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random thoughts on Account Abstraction]]></title>
            <link>https://sylve.org/random-thoughts-on-account-abstraction</link>
            <guid isPermaLink="false">https://sylve.org/random-thoughts-on-account-abstraction</guid>
            <pubDate>Wed, 27 Jul 2022 00:00:00 GMT</pubDate>
            <description><![CDATA[Article was originally published on hackmd.io on July 25th 2022. We're all hyped up at the prospect of higher programmability for our wallets, I thought I'd jump in and share some of what I've seen re...]]></description>
            <content:encoded><![CDATA[<p><em>Article was originally published on <a href="https://hackmd.io/@s0lness/BJUb16Yo9">hackmd.io</a> on July 25th 2022.</em></p>
<p>We're all hyped up at the prospect of higher programmability for our wallets, I thought I'd jump in and share some of what I've seen recently. The examples provided below revolve around StarkNet but could be applicable to other network supporting account abstraction.</p>
<h1>Account Abstraction, a primer</h1>
<p>On Ethereum L1 you have two entities: Externally Owned accounts (EOA) and smart contracts.</p>
<p>EOAs are addresses on the blockchain controlled by a private key. You generate them by creating a private key and deriving a blockchain address from it. You now control the key that can sign transactions from said address. But the key <em>is</em> the account: you can't authorize another key to sign for a given address and you can't code custom logic on top it. Governance and spending logic have to be implemented outside of the blockchain.</p>
<p>A smart contract is basically code held at a certain address on the blockchain. Some smart contracts are built to behave like wallets and are aptly called "smart wallets". You can be very creative with smart wallets because you don't have a unique signing key: for example, multisignature contracts like <a href="https://gnosis-safe.io/">Gnosis safes</a> allow you to define a spending quorum, ("<em>you need signature from 2 out of 3 authorized keys to validate transactions</em>"), and add other governance features on top of it ("<em>this address can only spend 50 USDC per day</em>").</p>
<p>It's important to understand that smart contracts can be programmed to behave exactly like EOAs (only one signing key, no upgradability, etc.) but the opposite is not true.</p>
<p>Account Abstraction (AA) is a long-discussed proposal to only have smart contracts and do away with EOAs. This mean your wallet is a smart contract, and you can program it any way you want. This also means you will need to deploy your contract wallet, you can't simply derive your key and immediately start signing transactions. AA is not yet implemented on Ethereum L1 (and may never be) but will be implemented by default on validity/zk-rollups like StarkNet, zkSync and Polygon Miden. Given that these L2s will have cheap computation and AA implemented by default, builders will be able to significantly improve user experience and build crazy new stuff.</p>
<p>Now, onto some cool characteristics of AA.</p>
<h1>EOAcel vs. key rotator</h1>
<p>EOAs are stickier than, say, World of Warcraft game accounts because you can't change the private key. Imagine I sell you my WoW account: you will change the password and the email address attached to it so I can't access it or use "<em>I forgot my password</em>" to reset it. Now imagine I sell you my EOA (meaning I give you the private key): you have no way of knowing if I've kept a copy of the key, and you can't modify this key. In 2 years I might decide to steal everything from you by signing a transaction with that same key to drain all your funds.</p>
<p>Account Abstraction makes it much easier to rotate keys. You can indeed implement a function which changes the main signing key of a given wallet, or even manage multiple signing keys. You could have your admin key in a hardware wallet and a myriad of other keys held on less secure devices and only authorized to perform certain actions.</p>
<p>For example: a key held on your browser could be authorized to transfer up to 50 USDC, while another key held in a server could be authorized to run exactly one <code>claim()</code> transaction on Aave every day to reap juicy DeFi profits.</p>
<p>Funnily, this key rotation makes Soulbound Tokens (SBTs) a tad trickier to implement with AA. With EOAs you have a quasi-guarantee that no one will sell their account. With AA you need to take extra measures to ensure ownership of the wallet cannot be transferred.</p>
<p><a href="https://twitter.com/GuthL/status/1546416720197435392">@GuthL suggested</a> to implement a wallet interface standard to uphold non-transferrability. This would follow a pattern similar to <a href="https://eips.ethereum.org/EIPS/eip-165">EIP-165</a>. Untransferrable wallets would need to follow a standard which would be guaranteed by interface detection. Another option would be to implement this at the NFT level, <a href="https://twitter.com/Th0rgal_/status/1546419010262138881">as suggested by @th0rgal</a>, but that would become an entire NFT standard in itself.</p>
<h1>I like to mobile mobile</h1>
<p>Blockchain mobile interaction is 99% read. Your phone holds your addresses and you can browse your balances, your NFTs, directly from your phone. Actual blockchain interactions (write) are entirely Desktop-bound because interacting with the blockchain from a smartphone is a hassle. If you want to sign a transaction from your phone you will need the private key of your wallet to be held on your phone, which is a big no-no security wise. You could spin up a <a href="https://twitter.com/sammybauch/status/1543676888023015424">burner wallet</a> from your phone but that would fragment your accounts on different devices. And what happens if you lose your device. etc. etc.</p>
<p>That's the situation with EOAs. Luckily AA allows us to program whatever we want. So why not authorize a <code>mobile_key</code> to sign transactions up to a certain amount, and/or only for certain contracts, and/or only for certain functions (no <code>transfer()</code> but only <code>play()</code> for example). You could even revoke it after a certain period of time.</p>
<p>The flow to authorize a mobile would be something like 1) generate pub/priv key on mobile phone 2) authorize pubkey on the smart wallet with an "admin key" 3) tadaa. And since we have an implementation of <code>nistp256</code> (used in smartphone secure enclaves) in Cairo, I'm sure we can get some creative and robust solutions.</p>
<p>This section is a special case the previous one but it is important to stress that we will be able to easily interact with the blockchain from a smartphone thanks to AA.</p>
<h1>Finally, some good f****** gaming UX</h1>
<p>On-chain games are cool but the more on-chain they are the more you'll need to sign transactions. Imagine clicking "approve" 200 times on Metamask just to play a game. To solve this you can leverage the same Mobile key logic to create session keys authorized to play games for a certain period of time without having to sign every 5sec. This is what we leveraged to provide a better user experience for <a href="https://github.com/rvorias/starkdew-valley">StarkDew valley</a> during the <a href="https://twitter.com/lordofafew/status/1519057227834818561">DevConnect StarkNet hackathon</a>. We generated a session key held in the browser's local storage and only authorized to sign transactions for 2min. After 2min, the key was revoked and you needed to create a new one and authorize it again.</p>
<p>Another cool feature is <a href="https://twitter.com/micksabox/status/1543636219019644931">batch transactions</a>, or as @lordofafew likes to call it: the transaction cart. With EOAs you need the contract you want to interact with to support multicalls to be able to batch transactions. With AA you get this for free: just pass an entire array of functions+parameters to your transaction and see the magic happen. Now you can <code>approve+transfer+revoke</code> in a single transaction rather than three.</p>
<p>Batch transactions can even help you save on transactions fees on StarkNet since you'd only be changing the state once for the transfer, not for the <code>approve/revoke</code> (explanations <a href="https://twitter.com/lordOfAFew/status/1532176881340010499">here</a>).</p>
<p>This is somewhat reminiscent of Arcade cabinets where you need a coin to play a game. Here, you could pay for your first transaction and if you happen to be winning, swap your hard-earned tokens to pay for your transactions fees and keep playing. This would only require you to add another <code>swap()</code> transaction at the top of your next batch of transactions. You can get crazy creative with this, which is why I'm excited about what the <a href="https://cartridge.gg/">Cartridge team</a>, who's building a gaming-focused wallet on StarkNet, will come up with.</p>
<h1>Shameless plugin</h1>
<p>During the Devconnect StarkNet hackathon about half the teams were tinkering with AA. We built a <a href="https://hackmd.io/@s0lness/BJUb16Yo9">session key</a>, other folks built a <a href="https://twitter.com/GuthL/status/1518912473876901889">deadman switch</a> or a <a href="https://www.notion.so/Game-Guilds-33c8008e033d4040b9438edf5225c580">multisig wallet for guilds</a>, and we all ended up forking the Argent, Braavos and Open Zeppelin contracts. Down the line we can't all come up with our own version of a wallet contracts with their own peculiar logic.</p>
<p>Argent has started working on a plugin system (<a href="https://github.com/argentlabs/argent-contracts-starknet/tree/explore/plugins/contracts">here</a>), forked by the Ledger team (<a href="https://github.com/CremaFR/argent-contracts-starknet/tree/explore/pluginsv2/contracts">here</a>) to help all the cool governance module integrate with smart wallets.</p>
<p>You could deploy your wallet with a single signing key, then add a multisig plugin, then a session key plugin, then a deadman switch plugin, without having to deploy a new wallet every time. You could also revoke them at will. There's an entire ecosystem of plugins waiting to be built and mashed together.</p>
<p>Anyone could build a front-end on top of a hypothetical plugin registry to help users choose which plugins they'd like to use, and showcase which are currently being used. You could imagine an incentive system where the most popular plugins get some funding as a public good or from projects that leverage them the most.</p>
<h1>NEOA's Ark</h1>
<p>I'm absolutely convinced everyone will eventually own NFTs. A key issue currently lies in the delivery of said NFTs. It's possible to use your credit card through systems like <a href="https://wert.io/">wert.io</a> where the user pays a company to run a transaction for them. The problem lies in actually getting the NFT: you will eventually need to create a wallet unless the NFT issuer wishes to custody your NFTs and possibly face legal and compliance issues.</p>
<p>With AA, NFT issuers could create a temporary smart wallet and authorize the buyer to identify themselves to get the main ownership of the wallet back, like a sort of escrow account. I'm also convinced that, while current web3 folks are huge on self-custody, third-party custody is the missing piece for mainstream adoption. AA would allow users to delegate the custody of their wallet to a banking service while ensuring they have the option to always retrieve their funds, or switch providers.</p>
<p>For blockchain to go mainstream it must become invisible. AA allows users to easily deploy wallets managed by 3rd parties to ease them into web3, and still have the option to go for full deluxe hardware-backed self-custody when they feel more comfortable. You can be completley oblivious to the inner workings of blockchain and have someone abstract it away for you, or you can be a hard-boiled self-custody maxi. AA gives you the option to not care, care less, or care later.</p>
<h1>A list of other cool stuff you can do with AA</h1>
<ul>
<li>Pay for a transaction in another currency than the fee currency by adding a <code>swap</code> from a random token to the fee currency.</li>
<li>Matryoshka NFTs: create NFTs that act like wallets and hold tokens or other NFTs (<a href="https://github.com/briqNFT/briq-protocol">like briq NFTs</a>).</li>
<li>Guild wallets: like a normal multisig contract but with more features tailored for games (<a href="https://github.com/supsam89/game_guilds">example</a>).</li>
<li>Wallet Flashloan: run an atomic transaction that 1) changes ownership 2) does stuff 3) gives ownership back (not sure why you'd want to do this but that's pretty funny).</li>
<li>Spam filter: only authorize inbound transfers from trusted tokens to avoid spam tokens and NFTs. You'd refuse receiving a transfer if it doesn't come from a pre-approved list of vetted contracts using a system similar to EIP-165 interface checking (could use something like <a href="https://tokens.kleros.io/">Kleros listings</a>). AA doesn't give it to you right out of the bat, it requires a change at the token-level as well, but the interface check is made easier at the wallet level thanks to AA.</li>
<li>Validium-only key storage: once <a href="https://medium.com/starkware/volition-and-the-emerging-data-availability-spectrum-87e8bfa09bb">volition</a> kicks in, you could choose to store the pubkey of a given secondary key only on L2 to save on cost, and only store the admin key with L1-backed security.</li>
<li>The whole gamut of transaction rules: timelocks, velocity controls (only N transactions per day or Y amount of ETH), allowlists, banlists, deadman switches, etc.</li>
<li>Recurring transactions: authorize a keeper network like <a href="https://twitter.com/yagi_fi/">yagi_fi</a>.</li>
</ul>
<h1>Final thoughts</h1>
<p>AA is an extremely powerful solution to fix glaring web3 UX issues, I hope this article gave you some better insights into it. I also encourage you to check out competing models such as <a href="https://twitter.com/petejkim/status/1529604590882234368">MPC wallets</a>. They are more centralized wallets leveraging complex algorithm to split key ownership but have the added benefit of getting cross-chain interoperability for free. AA is great as long as you're staying on a single chain, at least for now. If you're working on a system to allow cross-chain AA-based wallet, I'd love to chat.</p>
<p><em>Thanks a lot to <a href="https://twitter.com/crema_fr">@Crema_fr</a>, <a href="https://twitter.com/btchip">@btchip</a>, <a href="https://twitter.com/lordOfAFew">@loaf</a>, <a href="https://twitter.com/0xevolve">@0xEvolve</a>, <a href="https://twitter.com/jniset">@jniset</a>, <a href="https://twitter.com/guthl">@GuthL</a>, <a href="https://twitter.com/wraitii">@wraitii</a>, <a href="https://twitter.com/itamarl">@itamarl</a>, <a href="https://twitter.com/0xChqrles">@0xChqrles</a>, <a href="https://twitter.com/starknetdev">@starknetdev</a> and the whole StarkNet fam for the brainstorms.</em></p>
<h1>To go further</h1>
<h2>Intro to AA</h2>
<ul>
<li><a href="https://medium.com/nethermind-eth/the-history-and-future-of-account-abstraction-10cb097ebdc8">https://medium.com/nethermind-eth/the-history-and-future-of-account-abstraction-10cb097ebdc8</a> history of AA.</li>
<li><a href="https://www.argent.xyz/blog/wtf-is-account-abstraction/">https://www.argent.xyz/blog/wtf-is-account-abstraction/</a> great primer on AA by Argent team.</li>
<li><a href="https://perama-v.github.io/cairo/account-abstraction/">https://perama-v.github.io/cairo/account-abstraction/</a> the ancient knowledge of the great <a href="https://twitter.com/eth_worm">Perama</a> about AA.</li>
<li><a href="https://www.notion.so/Argent-X-Supporting-On-chain-Games-1ec71fc2b6ad4fe19b8f22cc677838b9">https://www.notion.so/Argent-X-Supporting-On-chain-Games-1ec71fc2b6ad4fe19b8f22cc677838b9</a> Argent's plan to support on-chain gaming.</li>
<li><a href="https://www.youtube.com/watch?v=sbbVCAB--i4&amp;t=20741s">https://www.youtube.com/watch?v=sbbVCAB--i4&amp;t=20741s</a> StarkNetCC panel on AA with Argent, Braavos, Ledger, briq and Realms.</li>
<li><a href="https://mirror.xyz/proofedloaf.eth/uJYBCOXoq0YfhKh0HrfwbA4yNV-jbvoeFiOnXDhs2Gc">https://mirror.xyz/proofedloaf.eth/uJYBCOXoq0YfhKh0HrfwbA4yNV-jbvoeFiOnXDhs2Gc</a> AA as Ethereum's broadband moment, by @loaf.</li>
<li><a href="https://www.slideshare.net/TinaBregovi/starkware-account-abstraction?next_slideshow=251274463">https://www.slideshare.net/TinaBregovi/starkware-account-abstraction?next_slideshow=251274463</a> technical presentation of AA's quirks on StarkNet.</li>
</ul>
<h2>Code implementations and tinkering</h2>
<ul>
<li><a href="https://github.com/argentlabs/argent-contracts-starknet">https://github.com/argentlabs/argent-contracts-starknet</a> Argent account contracts on StarkNet.</li>
<li><a href="https://github.com/OpenZeppelin/cairo-contracts/blob/main/docs/Account.md">https://github.com/OpenZeppelin/cairo-contracts/blob/main/docs/Account.md</a> OpenZeppelin account contracts on StarkNet.</li>
<li><a href="https://braavos.notion.site/braavos/Public-Docs-d98f625edb2e4399acab2e30d060ef8e">https://braavos.notion.site/braavos/Public-Docs-d98f625edb2e4399acab2e30d060ef8e</a> Braavos account contracts on StarkNet.</li>
<li><a href="https://mirror.xyz/onlydust.eth/FtnDmolbBbqH2yNLEADwt5OVgEnWRJg_aAavmCeeidY">https://mirror.xyz/onlydust.eth/FtnDmolbBbqH2yNLEADwt5OVgEnWRJg_aAavmCeeidY</a> great code tutorial for StarkNet accounts.</li>
<li><a href="https://github.com/smchala/demultiplexer-wallet">https://github.com/smchala/demultiplexer-wallet</a> automated smart wallet (send funds at a certain date).</li>
<li><a href="https://github.com/eqlabs/starknet-multisig/">https://github.com/eqlabs/starknet-multisig/</a> multisig wallet on StarkNet.</li>
<li><a href="https://github.com/sambarnes/cairo-multisig">https://github.com/sambarnes/cairo-multisig</a> another multisig on StarkNet, following OZ standards.</li>
<li><a href="https://github.com/argentlabs/argent-contracts-starknet/tree/explore/plugins/contracts">https://github.com/argentlabs/argent-contracts-starknet/tree/explore/plugins/contracts</a></li>
</ul>
<h1>Edition</h1>
<p>2023-01-05: corrected the "spam token filter" part. I mistakenly said that AA would allow an account to filter any token. This is not true, at least not naively. You'd need to change the token standard to account for it and add an interface-type check like EIP-165 on the wallet for authorized tokens.</p>
]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Fundamental Ideological Divide Between Web2 and Web3]]></title>
            <link>https://sylve.org/the-fundamental-ideological-divide-between-web2-and-web3</link>
            <guid isPermaLink="false">https://sylve.org/the-fundamental-ideological-divide-between-web2-and-web3</guid>
            <pubDate>Thu, 27 Jan 2022 00:00:00 GMT</pubDate>
            <description><![CDATA[In this article I'll use Web3 to broadly refer to communities and projects arguing for decentralization of ownership through blockchain technology, and Web2 to communities and projects endemic to the ...]]></description>
            <content:encoded><![CDATA[<p><em>In this article I'll use Web3 to broadly refer to communities and projects arguing for decentralization of ownership through blockchain technology, and Web2 to communities and projects endemic to the "normal" part of the Internet, such as Tumblr, Reddit or Wikipedia. FOSS will refer to <a href="https://www.gnu.org/philosophy/floss-and-foss.en.html">Free and open-source software</a>.</em></p>
<hr />
<p>The current line of argument in favor of Web3, especially NFTs, is that they're the only alternative against predatory centralized ownership systems. You either get a decentralized record of ownership on the blockchain by registering an NFT, or Facebook will gobble up your immortal soul in their scary centralized databases.</p>
<p><a href="https://twitter.com/punk6529">@punk6529</a> exemplifies this position:</p>
<p>::x{url="<a href="https://twitter.com/punk6529/status/1481228635621240833">https://twitter.com/punk6529/status/1481228635621240833</a>"}</p>
<p>Some Web3 critics take a wholly different stance on the topic by arguing that you don't need record of ownership, or even ownership at all, on the Internet.</p>
<p>The argument is the following: the Internet is not based on property but abundance. Native digital content has the very weird property of being naturally abundant. If you create a GIF or a JPEG you can generate unlimited copies of it and distribute it to everyone. Unlimited stock. Cornucopia of copy/paste. Internet communities have flourished on the premise of remixing and sharing content for free with others, and it works really well: memes, copypastas, webcomics, emerged because of this. Therefore, if the Internet is based on abundance, why would you divide up the commons and sell them? Why would you introduce scarcity? Why would you introduce property? Why must you be so greedy?</p>
<p>This is reminiscent of Rousseau:</p>
<blockquote>
<p>"The first man who, having enclosed a piece of ground, bethought himself of saying This is mine, and found people simple enough to believe him, was the real founder of civil society. From how many crimes, wars and murders, from how many horrors and misfortunes might not any one have saved mankind, by pulling up the stakes, or filling up the ditch, and crying to his fellows, "Beware of listening to this impostor; you are undone if you once forget that the fruits of the earth belong to us all, and the earth itself to nobody"."</p>
<p>Rousseau, Discourse on Inequality</p>
</blockquote>
<p>::x{url="<a href="https://twitter.com/eevee/status/1484748148169793537">https://twitter.com/eevee/status/1484748148169793537</a>"}</p>
<p>The truth is, copyright already exists and the Internet was never truly free. But there is indeed a quasi anarchistic or communistic ethos lying at the heart of the Internet. We can't deny the counterculture's influence on the initial dreams of what the Internet could be (<a href="https://books.google.fr/books/about/From_Counterculture_to_Cyberculture.html?id=2SNFpgX_WigC&amp;redir_esc=y">From Counterculture to Cyberculture</a>, <a href="https://en.wikipedia.org/wiki/What_the_Dormouse_Said">What the Dormouse Said</a>). That's where the expression "Information wants to be free" comes from.</p>
<p>And history tells us we don't <em>need</em> records of ownership, token incentives, ICOs, or even money, to build impressive projects. Think about what has been achieved by the FOSS movement: Linux, Wikipedia are testament to the heritage of this ethos. The blockchain community cannot forget that we built most of the incredible stuff the Internet runs on with no records of ownership or money.</p>
<p>If someone were to build Wikipedia again today the first comment from Web3 folks would be: "<em>where are the token incentives, why would people spend time to write articles, NGMI</em>". Turns out people like creating stuff and handing it out for free. To be more precise, <a href="https://www.reddit.com/r/slatestarcodex/comments/9rvroo/most_of_what_you_read_on_the_internet_is_written/">an elite minority of insane super-creators</a> make up most of the content creation on the Internet.</p>
<p>So when someone comes around and says "<em>let's build token incentives, let's build DAOs and structure everything</em>" it triggers a knee-jerk reaction from these communities. "<em>It worked well so far, why do you want to change it? How is this making anything better?</em>"</p>
<p>This is why I don't necessarily like Web3 as a definition of the blockchain <a href="https://avc.com/2015/02/the-carlota-perez-framework/">technological paradigm</a>. It is not a necessary strict improvement compared to what came before, it's not an <em>optimization</em>, it's a choice. It's a technological paradigm that enables creating what was previously impossible (native digital ownership for example) but this does not entail that it is strictly superior to the ways of the past or that it will replace it.</p>
<p>I like to compare blockchain technology to a sort of <a href="https://en.wikipedia.org/wiki/Uchronia">uchronia</a>, an alternate version of history where ownership exists natively on the Internet. Imagine just how different the world would be if we had invented blockchain technology in the 90s.</p>
<p>Turns out we're living in a version of history where <em>ownership doesn't natively exist on the Internet,</em> and looking back that's pretty weird. But we had to make do. This is why we have the attention economy, ad-based business model and centralized records of ownership. It has its flaws, yes, but we built a lot of stuff under these constraints.</p>
<p>I would argue that @eevee's argument is a tad naive. In the end, to monetize content the Internet, you only have three ways:</p>
<ol>
<li><strong>(trying to) enforce a copyright</strong>: this is where Web3 and FLOSS agree that this is subpar. Copyrights are omnipresent on the Internet precisely because it's one of the only way to make money with naturally abundant content. If you make create digital art, nothing is stopping someone else from copying it and selling it. Nothing except the threat of copyright infringement and sometimes a DRM.</li>
<li><strong>be paid to create new content</strong>: <a href="https://www.gnu.org/philosophy/why-free.en.html">this is what Stallman said in 1984</a>. This is also why we have Patreon, commission art, and ever increasing supply of incredibly specific furry porn.</li>
<li><strong>advertisement</strong>: slap an advertisement on top of your video or preach the gospel of NordVPN. This option applies most to content creators like Youtubers rather than digital artists.</li>
</ol>
<p>NFTs offer a new to make money: sell the digital originals of a piece of content.</p>
<p>NFTs are a way to represent scarcity natively on the Internet: they are like digital object that you can sell just like you'd sell a painting. Creating an NFT does not entail closing down access to the content. I see NFTs as a new option and a very natural way to monetize abundance on the Internet. <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3971240">This</a> is what the <a href="https://metaversal.banklesshq.com/p/nfts-and-cc0">CC0 NFT</a> movement is trying to achieve: publish a work of art in the public domain to allow anyone to reuse, remix and copy it as much as they want, and inscribe the record ownership on the blockchain to be able to monetize it.</p>
<p>NFT collections actually follow different intellectual property strategies, and content creators are free to choose whichever fits their needs. For example:</p>
<ul>
<li><strong>Don't grant rights to the NFT holder</strong>: buying a <a href="https://www.theouterrealm.io/blog/cryptopunks-copyrights">Cryptopunk</a> or a <a href="https://www.nftlicense.org/">Cryptokitty</a> does not grant you any rights on the intellectual property, it belongs to the parent company.</li>
<li><strong>Grant some rights to the NFT holder</strong>: buying a <a href="https://thedefiant.io/bored-apes-yacht-club-cryptopunks-copyright-fight/">Bored Ape</a> will actually grant you rights to produce and make money out of derivative products.</li>
<li><strong>Don't grant any right to anyone (CC0)</strong>: buying a <a href="https://nouns.notion.site/Build-on-Nouns-e7e5e2b2d2094c73a9ef62492d8095b8">Noun</a> or a <a href="https://metaversal.banklesshq.com/p/croak-an-intro-to-cryptoadz-">CrypToadz</a> will not grant you any right as the IP is in the <a href="https://creativecommons.org/share-your-work/public-domain/cc0/">public domain</a>.</li>
</ul>
<p>You can keep on creating content just like before. You now also have the option to create NFTs to sell it. It's not antithetical. If you're selling prints of your art, you could also be selling NFTs.</p>
<p>To take a concrete example: Tim Berners-Lee created the World Wide Web, released them for everyone to reuse, <a href="https://www.sothebys.com/en/buy/auction/2021/this-changed-everything-source-code-for-www-x-tim-berners-lee-an-nft/source-code-for-the-www">and sold NFTs of the source code</a>.</p>
<p>As he puts it:</p>
<blockquote>
<p>"This is totally aligned with the values of the web," Berners-Lee told the Guardian. "The questions I've got, they said: 'Oh, that doesn't sound like the free and open web.' Well, wait a minute, the web is just as free and just as open as it always was. The core codes and protocols on the web are royalty free, just as they always have been. I'm not selling the web – you won't have to start paying money to follow links.</p>
<p>"I'm not even selling the source code. I'm selling a picture that I made, with a Python programme that I wrote myself, of what the source code would look like if it was stuck on the wall and signed by me.</p>
<p><em>"If they felt that me selling an NFT of a poster is inappropriate, then what about me selling a book? I do things like that, which involve money, but the free and open web is still free and open."</em></p>
<p>Source: <a href="https://www.theguardian.com/technology/2021/jun/23/tim-berners-lee-defends-auction-nft-web-source-code">The Guardian</a></p>
</blockquote>
<p>There's no fundamental difference between a token-gated community like <a href="https://twitter.com/FWBtweets">FWB</a> and a Patreon. I'd argue that a token-gated community gives more control to both the content creators and the fans compared to Patreon as they can't be censored by a centralized authority. As porn is <a href="https://www.theverge.com/2018/12/5/18126451/tumblr-porn-social-media-ban">increasingly censored</a> on social networks, Web3 offers a viable alternative for some communities.</p>
<p>In the end I believe there's room for both frameworks. Just like <a href="https://www.youtube.com/watch?v=W8r-tXRLazs">video didn't actually kill the radio stars</a> (podcasts anyone?), Web3 will not kill Web2.</p>
<p>Digital ownership will not kill abundance.</p>
<blockquote>
<p><em>Utopia is a framework for utopias, a place where people are at liberty to join together voluntarily to pursue and attempt to realize their own vision of the good life in the ideal community but where no one can impose his own utopian vision upon others.</em></p>
<p>Robert Nozick, book Anarchy, State, and Utopia</p>
</blockquote>
<p>So when you hear blockchain critics say that "<em>we don't need blockchain</em>", try to understand where they come from rather than build a strawman argument that they're necessarily advocating for full deluxe data centralization. They might be saying "<em>we've built so much stuff without it, I don't understand what it can bring to the table</em>".</p>
<p>They might be saying that Web3 has everything to prove compared to Web2.</p>
<p>And they would be right.</p>
<p>So let's continue building.</p>
<hr />
<p>Special thanks to my co-founder <a href="https://twitter.com/wraitii">@wraitii</a> for the brainstorms, careful reviews, and for teaching me the difference between <a href="https://www.gnu.org/philosophy/floss-and-foss.en.html">FOSS and FLOSS</a>.</p>
]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Four challenges in blockchain gaming]]></title>
            <link>https://sylve.org/four-challenges-in-blockchain-gaming</link>
            <guid isPermaLink="false">https://sylve.org/four-challenges-in-blockchain-gaming</guid>
            <pubDate>Mon, 06 Dec 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[Blockchain gaming is having a moment. With record-breaking fundraising, a new business model called Play-to-Earn, promises of better interoperability, more control for players in the upcoming metavers...]]></description>
            <content:encoded><![CDATA[<p>Blockchain gaming is having a moment. With <a href="https://venturebeat.com/2021/10/06/sky-mavis-raises-152m-at-nearly-3b-valuation-for-axie-infinity-play-to-earn-nft-game/">record</a>-<a href="https://techcrunch.com/2021/09/20/sorare-raises-680-million-for-its-fantasy-sports-nft-game/">breaking</a> fundraising, a new business model called <a href="https://www.jonlai.co/play-to-earn">Play-to-Earn</a>, promises of <a href="https://gubsheep.substack.com/p/the-strongest-crypto-gaming-thesis">better interoperability</a>, <a href="https://www.theverge.com/22655077/loot-social-network-open-source-nft">more control</a> for players in the upcoming <a href="https://gallery.fwb.help/matthew-ball-metaverse-essay">metaverse</a>; it's met with both <a href="https://future.a16z.com/podcasts/play-to-earn-gaming-and-how-work-is-evolving-in-web3/">excitement</a> and <a href="https://dailyhodl.com/2021/12/05/whistleblower-edward-snowden-issues-crypto-gaming-warning-highlights-potential-unethical-practices/">skepticism</a>.</p>
<p>I want to pitch in and list down some issues that I believe are still not solved and offer perspectives on how to solve them.</p>
<p><img src="https://sylve.org/images/posts/four-challenges-in-blockchain-gaming/intro-1.png" alt="" /></p>
<p>I refer to blockchain games as games that have some of their core mechanics handled by the blockchain. It's a spectrum ranging from weakly on-chain games like <a href="https://sorare.com/">Sorare</a>, that only require you to buy an NFT to play the off-chain game, to strongly on-chain games like <a href="https://www.cometh.io/">Cometh</a> that actually require the player to interact with the blockchain to play the game. I highly recommend watching <a href="https://www.youtube.com/watch?v=3_WLjLsYUbM">this EthCC talk by @wighawag</a> on how he built a game entirely on-chain.</p>
<p><img src="https://sylve.org/images/posts/four-challenges-in-blockchain-gaming/intro-2.png" alt="" /></p>
<p>I'm not considering block time and overall blockchain speed as a problem as it's a general issue for most blockchain projects. I'm interested in problems that will remain even after blockchains have sped up.</p>
<h1>Problem #1 Multi-accounting</h1>
<h2>Overview</h2>
<p>Most games implicitly rely on the following rule <code>one player == one human</code>. If not, this means that someone else could be playing in your place, and we usually don't want that.</p>
<p>This rule is easy to verify in meatspace, you can check with your own two eyes or ask for an ID. <a href="https://en.wikipedia.org/wiki/On_the_Internet,_nobody_knows_you%27re_a_dog">It's more difficult on the Internet</a>.</p>
<p>It's currently mitigated, not fixed, by a mixture of pseudo-<a href="https://en.wikipedia.org/wiki/Know_your_customer">KYC</a>, <a href="https://en.wikipedia.org/wiki/Single_sign-on">SSO</a> and <a href="https://support-leagueoflegends.riotgames.com/hc/fr/articles/201751834-MMR-et-Elo-boosting">ban threats</a>. You can <a href="https://esports-news.co.uk/2017/07/12/elo-boosting-how-much-boosters-make/">lend</a> your World of Warcraft account to someone and change the username and password to regain control of this account later (provided you still have access to the email address controlling this account). This is a technique used to "boost" accounts: have another player use your account to advance your ranking or <a href="https://en.wikipedia.org/wiki/Gold_farming">get gold coins for you</a>.</p>
<p>::youtube{url="<a href="https://www.youtube.com/watch?v=SUhThiW_7R0">https://www.youtube.com/watch?v=SUhThiW_7R0</a>"}</p>
<p>The consequences of multi-accounting can range from getting destroyed by a pro player having fun reaping kills in the minor leagues to higher <a href="https://en.wikipedia.org/wiki/Gold_farming#Ill_effects_on_in-game_economy">in-game inflation</a>.</p>
<p>Let's say we use a blockchain address as a unique identifier for a player. It has several advantages. In blockchain you can't just lend your address because it would mean lending the private key controlling this address. If I lend you my private key I can't be sure that you're not going to forget it afterwards and that you're not going to steal my funds. Blockchain accounts are theoretically "stickier" than web2 accounts.</p>
<p>But that's only if you've ascertained the identity of the person behind the account. If you can't rely on a solution to ascertain someone's identity you might have the same player running several of your game's accounts. Furthermore, creating a <a href="https://ethereum.org/en/wallets/">blockchain address</a> is free on most blockchain, so there's nothing deterring bad actors from creating new accounts every time they're banned from a game.</p>
<h2>Solutions</h2>
<h3>NFT-based access</h3>
<ul>
<li>How do you deter people from creating fake accounts? Make it costly and price smurfs out. In <a href="https://axieinfinity.com/">Axie Infinity</a>, buying the three required Axies currently costs around $600 which is enough to deter most multi-accounting.</li>
<li>Arguably, Axie's scholarship system could be considered as a form of multi-accounting to beat the NFT-based access. Rather than playing on <a href="https://www.youtube.com/watch?v=ni8bt2_qCfc">25 mobile phones</a> you could buy up the required Axies and have someone else play for you. The <code>one player == one human</code> rule isn't breached gameplay-wise but the reward fairness is. Players with more capital can buy up more Axies, delegate to more scholars, and therefore get more money.</li>
</ul>
<h3>Proof of humanity</h3>
<ul>
<li>Rely on the player holding a proof of humanity on-chain to allow them to play the game. This can come in many forms, like passing the <a href="https://www.proofofhumanity.id/">proof of humanity</a> KYC, <a href="https://worldcoin.org/">pledging your eternal soul to the Orb</a>, etc.</li>
<li>Rather than asking for a specific KYC you could also require the player to have performed certain actions on-chain and and consider it proof enough. The <code>one player == one human</code> rule could become <code>one player == one address with a lot of actions</code> rule. For example: the person must have voted on an Aave proposal, have an ENS domain, made more than 10 transactions, etc.</li>
</ul>
<h3>Reputation system</h3>
<ul>
<li>The above solutions are based on a "ask for permission" type of check, the player has to prove that they're human before playing. Another way of doing it is to "ask for forgiveness". This solution rests on giving tools to the community to weed out bad actors. Players are regarded as humans from the get-go but this status can be challenged.</li>
<li>Players could raise doubts on a given player's identity and requiring them to formulate a proof that will be verified through a judiciary process, maybe on a <a href="https://kleros.io/">Kleros</a> court, similar to <a href="https://help.steampowered.com/en/faqs/view/65DA-BD12-0DE9-9853#howwork">Steam Overwatch</a>.</li>
<li><a href="https://blockchain.mirror.xyz/HOcQm6YaIGT8omhLwDS3m680BN0wVOV10DYr9LtxMn4">This article</a> explores the idea of proof-of-playtime as a suitable measure for humanity in governance systems. In order to get to the higher leagues you will require your players to spend hours in-game, therefore continuously generating a proof of humanity through a proof-of-playtime.</li>
</ul>
<h1>Problem #2 Key management</h1>
<h2>Overview</h2>
<p>"With great power comes great responsibility". Blockchain technology puts responsibility in the hand of the user's via its private keys. Users are the only one that can use these keys meaning game developers can't natively perform actions on-chain for the user.</p>
<p>For a weakly on-chain game like Sorare it's not much of an issue gameplay-wise. The player has to buy some cards, they can do it through Ramp, they might not even know they're using the blockchain at all. All of the game is managed off-chain.</p>
<p>For strongly on-chain games like Cometh it's more of an issue. The more actions players can perform, the more they will have to sign transactions, the more the Metamask Fox will pop up and annoy you.</p>
<p>As blockchains speed up, game developers will experiment with more interactive games rather than only turn-based games and asynchronous games. Allowing players to perform more actions on-chain means they will have to sign more transactions. As a former colleague would say "that's just too much click click".</p>
<h2>Solutions</h2>
<h3>Local and temporary keys</h3>
<ul>
<li><a href="https://dev.mirror.xyz/J1RD6UQQbdmpCoXvWnuGIfe7WmrbVRdff5EqegO1RjI">Mirror</a> implements a clever system to save users from signing too often. A keypair is generated and stored on the client side and is only authorized to perform non-sensitive actions.</li>
<li>In the same fashion a player could start a game session by generating a keypair stored locally and broadcast one transaction to the game smart contract with their main key to authorize the temporary key to validate game actions for a set time period. At the end of the session, the temporary key would be invalidated. The user's computer automatically signs transactions with the temporary key and the user's main key is kept safe. It's like a local temporary hot wallet.</li>
</ul>
<h3>Smart wallets and multisignature</h3>
<ul>
<li>Rather than requiring the player to sign every single transaction they could use a smart wallet like <a href="https://www.argent.xyz/">Argent</a> over which they have total control and give the right to other addresses to perform actions on their behalf.
<ul>
<li>For example, the <a href="https://github.com/cometh-game/cometh-renting-contract">Cometh renting contract</a> works by spawning a multisignature wallet. A spaceship owner will delegate his asset through the multisig wallet to another player that can only use certain functions on the Cometh contract. This ensures that the player can only use the NFT spaceship for game-purposes and can't steal it from the owner.</li>
</ul>
</li>
<li>Smart contracts would benefit from having a "user settings" on-chain that would allow a user to permit someone else to use a contract on their behalf. As an Aave user I would be able to define that my friend's address is allowed to claim but not withdraw funds on my behalf (kudos to @btchip for the idea).</li>
</ul>
<h1>Problem #3: Hiding information on-chain</h1>
<h2>Overview</h2>
<p>Let's build a game of rock paper scissors on-chain. One naive way to implement this would be to have a single <code>play</code> function that can be passed <code>rock</code>, <code>paper</code> or <code>scissors</code>. I play the game by feeding the <code>play</code> function my choice, and the contract will compare the moves from the two competitors.</p>
<p>The problem is that nothing stops my opponent from looking at the blockchain to check my move while it's being mined. If I've chosen <code>rock</code> they will surely play <code>paper</code>.</p>
<p>The problem gets even worse for <a href="https://en.wikipedia.org/wiki/Perfect_information">imperfect information games</a> like Battleship (AKA <a href="https://en.wikipedia.org/wiki/Fog_of_war#In_video_games">fog-of-war</a> games). If the blockchain stores the state of our Battleship game my opponent can easily ask the smart contract where my ships are on the grid and beat me.</p>
<p>Hiding information on-chain is difficult since blockchain, by essence, is an open and decentralized database. Games that require hiding some informations from other players have a harder time being played on-chain because of this.</p>
<h2>Solutions</h2>
<h3>Commit-reveal schemes</h3>
<ul>
<li>For rock, paper scissors the contract could require both players to "lock" their choice by hashing their choice along with a number of their choosing. When both players have committed their choice they are asked to reveal their choice along with the number they had chosen, and the contract can verify that they have revealed what was committed. This <a href="https://medium.com/swlh/exploring-commit-reveal-schemes-on-ethereum-c4ff5a777db8">article</a> explains how to build a rock paper scissors game with this system.</li>
</ul>
<h3>Zero-knowledge proofs</h3>
<ul>
<li>ZKPs are used to prove to someone that a given statement is true, without conveying any information apart from the fact that the statement is indeed true. For example, I can prove to someone I've solved a 9x9 Sudoku by having them sum up each individual line and row and verify the sum is always 45 (the sum of integers from 1 to 9) without revealing the Sudoku in its entirety.</li>
<li><a href="https://zkga.me/">Dark Forest</a> is a strategy game based on zero-knowledge proofs called SNARKS. Users play on their browser and send proofs of their move to the smart contract. The contract will then verify if the move they've made is legit, while users don't have to disclose what their move was.
<ul>
<li>There's a <a href="https://softwareengineeringdaily.com/2021/06/21/dark-forest-transparency-on-blockchains-with-zero-knowledge-proofs-with-brian-gu/">great podcast</a> from the DarkForest team explaining the mechanics of the game and a <a href="https://starli.medium.com/dark-forest-one-interesting-game-with-zk-snark-technology-47528fa7691e">blogpost</a> detailing how the contract works.</li>
</ul>
</li>
<li>The funny thing with <a href="https://medium.com/zeroknowledge/zero-knowledge-the-game-688ec3709b41">zero-knowlege games</a> is that the state is not stored on-chain but usually on the user's side. If the player looses their "save state" the blockchain will not keep it for them. No one actually knows what is going on in Dark Forest, not even the game developer knows where all the players are unless they publicly disclose their location (which they can prove).</li>
<li>ZKPs can also allow games to scale by handling most of the hard computation off-chain and publishing a proof of this computation on-chain, to be reviewed by a smart contract. I recommend checking <a href="https://killari.medium.com/starks-verifying-a-complex-auto-battler-calculation-on-ethereum-d8698f29808d">this article</a> by <a href="https://twitter.com/Qhuesten">Killari</a> on how to implement such a system for an auto battler.</li>
</ul>
<h1>Problem #4: Cheat-to-Earn</h1>
<h2>Overview</h2>
<p>Play-to-earn means players are compensated for playing a game. Axie Infinity players are rewarded for completing quests with SLP tokens that they can trade. Sorare players compete in fantasy leagues and earn ETH.</p>
<p>Both games implement cheat-resistant P2E mechanics:</p>
<ul>
<li>Sorare's rewards are random, in true fantasy-gaming fashion. Unless you can read the future, there's no beating this. Multi-accounting could be used to beat a game like <a href="https://medium.com/@pokerclassified/what-is-multi-accounting-and-should-you-do-it-48ec44029c13">Poker</a> that still relies on randomness.</li>
<li>Some Axie rewards are time-based, meaning that the only way to cheat is to perform a <a href="https://en.wikipedia.org/wiki/Sybil_attack">Sybil attack</a> through multi-accounting. By impersonating 25 players you earn 25 times the reward (which sounds a lot like an Axie scholarship).</li>
</ul>
<p>Let's say we want to build a P2E economy on a skilled-based game like Fortnite. Each game won means you get airdropped some tokens. The game is quickly going to be flooded by cheaters.</p>
<p>History has proved catching video game cheaters is difficult: <a href="https://www.youtube.com/watch?v=weG2nCzblJk">it (allegedly) happened in the early days</a>, it's an issue in <a href="https://www.youtube.com/watch?v=yDUdGvgmKIw">competitive speedrunning</a>, it's an <a href="https://www.forbes.com/sites/paultassi/2020/04/21/anger-over-destiny-2-pc-cheaters-has-reached-a-tipping-point/#17382a027779">issue</a> <a href="https://www.theverge.com/2020/5/6/21246229/pc-gaming-cheating-aimbots-wallhacks-hacking-tools-developer-response-problem">even now</a> on AAA games. Cheaters generally use some piece of software to give them an unfair advantage. <a href="https://nerdbot.com/2021/05/16/what-are-aimbots-and-how-do-they-work/">Aimbots</a>, for example, read the game's memory to show the position of other players on the screen before they've appeared so the cheater knows what to expect.</p>
<p>Current anti-cheat software are sometimes considered <a href="https://levvvel.com/what-is-kernel-level-anti-cheat-software/">invasive</a> and are geared towards producing the minimum viable inconvenience for players:</p>
<blockquote>
<p>As many of these games are free to play, game developers also have to balance the ability for cheaters to simply create a new account if they get banned. That's increasingly difficult for the popular battle royale games that are purposely designed to make it quick and easy to jump straight into a game with a new account.</p>
<p><a href="https://www.theverge.com/2020/5/6/21246229/pc-gaming-cheating-aimbots-wallhacks-hacking-tools-developer-response-problem">Source</a></p>
</blockquote>
<p>If someone cheats in my Fortnite game it's a bad experience for me but it will only last a few minutes, and I'll quickly get on to my next game. But if I'm expecting a financial reward from this game and someone wins using an aimbot, I've not only been inconvenienced, I've also been robbed.</p>
<p>Token incentives are powerful mechanisms. If cheaters have a financial incentives to bot games and cheat, they will cheat and build AI bots to beat human players.</p>
<h2>Solutions</h2>
<h3>Mitigate botting of P2E mechanics</h3>
<ul>
<li>Easiest way to avoid someone from cheating your P2E system your game is to make it technically difficult to have a bot play it. For example it's still difficult for AI to beat 3D platform games with items to find or anything that involves conversation.
<ul>
<li>Games like <a href="https://conquest.eth.link/">Conquest</a> are based on diplomacy: players have to actually talk to each other in Discord servers to build alliances and win. Until AIs routinely pass the gamer Turing test, we'll be safe. As @ronan, the game's developer, states: "The point is not to guarantee that they are zero bot, just that they will be sub-humans".</li>
</ul>
</li>
<li>There could be other game mechanics that either don't give an unfair advantage to bots or are based around human-bot interaction (@guiltygyoza touches on this in his <a href="https://www.guiltygyoza.xyz/2021/10/crypto-native-games">Crypto-native games article</a>).</li>
</ul>
<h3>Decentralized anti-cheat system</h3>
<ul>
<li>A game could reward referees to verify if a game has actually taken place and that a player has won without cheating. If there's a suspicion of foul play a decentralized tribunal running on Kleros could judge the case.</li>
<li>You could even have bounty hunters putting other players to trial and getting paid for building their case. The amount of work put into <a href="https://www.youtube.com/watch?v=lGRcf7mi-Uc">videos like this</a> should be compensated.</li>
<li>The above system could be enhanced with a skin-in-the-game mechanism, by asking players to wager when playing or accusing another player of cheating. If they're caught cheating or lying they would lose the wager.</li>
</ul>
<h3>Reputation system</h3>
<ul>
<li>In combination with the above you could incentivize players to behave properly by rewarding them for good behavior. Some higher leagues with greater payout would only be accessible to players with a clean cheating record.</li>
<li>This could also be implemented on the social side of the game. If a player repeatedly insults others in-game a temporary ban could be enacted on-chain and lifted after some time. Or a "three strikes and you're out" policy before deactivating their account for good and have them start the grind from scratch to get back to the higher leagues. These incentives might be a way to nudge <a href="https://www.youtube.com/watch?v=2VjLXObhtBc">toxic players</a> into behaving.</li>
</ul>
<h1>The easy way out: just do it off-chain</h1>
<p>All the problems outlined above are specific to strongly on-chain games and can be mitigated by using off-chain tools or run more of the game off-chain.</p>
<ul>
<li>Multi-accounting: have players sign in with an SSO and benefit from the service's KYC. This is the method implemented by <a href="https://zebedee.io/infuse">Zebedee Infuse</a> to run their Bitcoin-backed CS:GO tournaments: they require players to have an active Steam account (I guess not be <a href="https://help.steampowered.com/en/faqs/view/571A-97DA-70E9-FF74">VAC-banned</a>).</li>
<li>Hiding information: if you store everything off-chain there's no issue anymore. Sorare and Axie don't have problems because most of the game mechanics are off-chain.
<ul>
<li>Xaya team has a <a href="https://xaya.io/xayaships/">proof-of-concept</a> of a battleship game implemented with <a href="http://www.ledgerjournal.org/ojs/index.php/ledger/article/view/15/64">game channels</a>. The gist of it is to have players communicate between themselves during the battleship game, each player cryptographically signing their move, and storing the final result of the game on-chain.</li>
<li><a href="https://edward-thomson.medium.com/preventing-cheaters-in-fog-of-war-games-69f202fbe107">@EAThomson</a> suggested using a cryptography mechanism called <a href="https://en.wikipedia.org/wiki/Private_set_intersection">Private Set Intersection</a> to have two players share information between each other but ensuring players can't read the game's memory to gain an unfair advantage.</li>
</ul>
</li>
<li>Client-side security: if key custody is managed by the game developer there is no issue anymore, but it would defeat the purpose of having the player in control in the first place. With a smart wallet the game developer could be a stakeholder in the player's security setup and could be revoked at will. This would be a good way to onboard users: have the game developer custody the user's key and help them ramp up on the security side before allowing to take full control of their account if they wish to.</li>
<li>P2E: for skill-based games it is still an issue but you have more tools to monitor players. The <a href="https://www.gabrielgambetta.com/client-server-game-architecture.html">rule of thumb</a> is: the more you have the game engine running on the user's computer, the larger the attack surface for them.</li>
</ul>
<h1>Conclusion</h1>
<p>I don't think that having all the mechanics on-chain should be a goal in itself but rather a mean for interesting player experiences and new game use cases. If games are to handle more of their mechanics on-chain there are indeed many challenges to overcome. Sorare and Axie showed us how to build strong games with few mechanics running on-chain, I'm excited to see what we will achieve once we solve these challenges.</p>
<h1>Credits</h1>
<p>Thanks @wraitii, Decentralized Game Alliance, @EAThomson @wighawag @Qhuesten @guiltygyoza @PEntremont @MerschMax_ for the brainstorms and reviews of the article.</p>
]]></content:encoded>
        </item>
    </channel>
</rss>