DEV Community

Cover image for My Pronouns Are Public-Key & Wallet
Jedi of JavaScript
Jedi of JavaScript

Posted on

My Pronouns Are Public-Key & Wallet

If you're coming from Web2, identity usually means some combination of:

  • Username
  • Email address
  • Password
  • OAuth ("Sign in with Google")

In other words, your identity is typically managed by a server somewhere.

Solana flips that idea on its head.

On Solana, your identity is your wallet.

More specifically, it's your public key.

Think of a wallet as an SSH key pair. If you've ever generated an SSH key to connect to a server, you've already seen the core idea. You have:

  • A public key that can be shared freely
  • A private key that must remain secret

Solana wallets work the same way. The fun and interesting part is that -

Both keys are basically just math numbers, carefully crafted collection of 1's and zero's (sophisticated cryptography, so you can't just write a bunch of numbers and expect em to work .. lol), and they are created independent of the blockchain but still completely legit and recognized by the blockchain
.

Your public key is your address. Anyone can see it, send assets to it, or verify actions associated with it.

Your private key is proof that you control that address. Instead of logging in with a password, you prove ownership by signing transactions and messages.

What's also interesting is that there are no usernames or accounts built into Solana itself. The blockchain doesn't know your name, email, or profile picture. It only knows that a particular public key signed a particular action.

That means identity becomes portable.

If I use my wallet to connect to ten different Solana applications, I'm still the same identity everywhere. I don't need ten different accounts or ten different passwords. My wallet is the account.

This is why wallet connection buttons in Solana apps feel similar to "Sign in with Google" in Web2. The difference is that Google owns your identity, while your wallet is owned by you.

After spending the first few days learning Solana, this was the biggest mental shift for me:

In Web2, identity is something a platform gives you.

In Solana, identity is something you bring with you.

Top comments (0)