Introducing Sealcaster — anonymous casting on Farcaster powered by ZK

What's Sealcaster? How does it work? What can we do with it? Let's make the whole thing a bit clearer!

Introducing Sealcaster — anonymous casting on Farcaster powered by ZK
Introducing Sealcaster our latest product experiment

Hi Farcasters! So you landed on and decided to dive deeper into what's happening. I'm one of the leading developers of the SealCred ZK protocol that allows Ethereum users to detach their asset ownership from their main identity anonymously. Like you can create an anonymous ZK badge attesting to the fact that you own a Farcaster account!

Wait, what's that "badge" I'm talking about?

what's going on send halp is there math ahead

No math

Phew! I'm glad I don't have to explain prime fields and other things to you. Vitalik did it better anyway. So the badges are literally special soulbound zkNFTs derived from your original assets.

Wait, what's "soulbound"? What's "zkNFTs"? Are you actively trying to confuse me?

Not at all

Souldbound means that you can't transfer this NFT after you mint it. But Vitalik explained it better anyway. Now zkNFTs (in fact, the derivative zkNFTs we're using here) are just like your usual NFTs but derived from the original NFTs without any link to the original owner.

stahp you don't make it any clearer

Sure, here's an example

Let's say you own a BAYC and want to get that sweet, sweet new drop that anon on the internet told you about. So you open the website, and woah, it asks you for the signature — I mean, it makes sense, the drop is exclusive for the BAYC owners for now, and you have to prove that you own one. To be safe, though, you're not going to tweet about it just yet. What if it's a rug pull? You hit "sure, go ahead, sign it."

Wait, where did all your apes go? But how could you prevent this from happening?

You could have used a derivative soulbound zkNFT. Seth probably couldn't — because we haven't launched back then yet — but you indeed can! And you can use Sealcaster to get a taste of this sweet, sweet zkNFT world today!

So what you can do with SealCred (and what Sealcaster does behind the scenes) is to create a Zero-Knowledge proof ("ZKP" for short) of the fact that you indeed own a BAYC — and then use this ZKP to mint a BAYC-d to another Ethereum wallet (-d is the suffix we use for the derivatives to differentiate them from the original assets). Afterwards, you would sign a message with your separate account instead of using the main account.

Whoever does the airdrop can now safely drop you their scam coins to an Ethereum address that is in no way associated with your primary address (that owns a BAYC) but is still verified to belong to a BAYC owner! And the sweetest part of this deal? This other address can be a throwaway one that just owns this one soulbound zkNFT called BAYC-d, which can't be transferred (stolen)!

what the heck just happened is it some sorcery

🌈 The sorcery 🌈

First of all, I have to point out: all of our code is open source. And I mean it. Every. Single. Line. Of. It. It is also heavily scrutinized by the community — we feel like every step we take is happening under 🔎 with whitehat 🕵️ investigating. We are always aware of the drawback of our flexible, ever-changing approach, as evident from our previous articles on the topic:

Thus far, I'm confident that our privacy tech is sufficient to successfully hide you from anyone. The only visible drawback at the moment is the fact that we could potentially generate fake zkNFTs. Obviously, this would crash our reputation. However, we're addressing this in the new version of the protocol very soon — and we won't be able to even pose as Cryptopunk holders anymore 😭

But, seriously, hit that "Subscribe" button to get the new article delivered to your inbox about how we're solving the fake zkNFTs generation problem!

Here's what's going on when you use Sealcaster:

  1. You click "Create Burner Wallet"
  2. We ask you to connect an Ethereum address you've connected to a Farcaster account
  3. Your browser asks the attestor to verify the fact that this Ethereum address is indeed connected to a Farcaster account
  4. We ask you for a signature of type 0xbf...08eE for Sealcaster that can only be used for Sealcaster, nowhere else on the web
  5. Your browser creates a burner wallet and stores it securely in the local encrypted storage where only the Sealcaster website has access to
  6. Your browser generates a ZKP for the fact that you own the Ethereum address connected to a Farcaster account; the public part of this ZKP visible to anyone only contains the fact that you own an Ethereum account connected to a Farcaster account; this ZKP does not contain the username or the Ethereum address!
  7. Your browser sends a mint call to our Farcaster zkNFT smart contract containing the ZKP from #6 — which is the key to using this method — from the burner wallet that got generated in #5 (you pay no gas fees because we subsidize them securely with OpenGSN)
  8. 💥! You have a burner wallet with a FARCASTER-d zkNFT! Feel free to save the private key in case you need it in the future (and feel free to layer even more cool zkNFTs on this burner wallet at SealCred!)
  9. You type in your anonymous cast, hit the "Cast" button
  10. Your browser sends a savePost call to our SCPostStorage smart contract from the burner wallet generated in #5
  11. 💥! Your post gets on the blockchain, and everyone can view it!
  12. Our special server holding the private key from the shared @sealcaster account on Farcaster listens to the smart contract for the new posts and casts one when it appears on the chain!

You might notice that most of the stuff above happened semi-automatically. No human is involved in the math, hehe. You literally press a button, connect an account, sign a message, type the cast, hit the "Cast" button — and that's it!

Not sure if it can get any simpler.


One more thing

But I haven't even told you the best part of zkNFTs yet. No one knows who created which zkNFT!

puppers are safu

This means a lot of things beyond simply casting something anonymously to a shared account. This means that anybody can build anything on top of these zkNFTs! These zkNFTs are just ERC721 tokens, the vanilla ones that everybody knows how to work with!

Imagine the possibilities. Voting? Airdrops? Endorsements? FREAKING GLASSDOOR WITH VERIFIED WORK EMAILS???

If only someone could mint you a zkNFT for owning that email for the last decade working for Apple. Oh, wait. WE CAN.

But I'm getting ahead of myself here. Stay tuned for the upcoming posts and products we're releasing really soon, which will blow you away. As for now?

Also, subscribe so that you don't miss the very next blog post on technical deep dive into how our ZK circuits and smart contracts work (with code examples!).

Now, excuse us. We're hard at work on the next product we ought to unleash onto the world!