WeSearch

You Already Understand Solana Identity: You Just Don't Know It Yet

·5 min read · 0 reactions · 0 comments · 1 view
You Already Understand Solana Identity: You Just Don't Know It Yet

A Web2 developer's guide to on-chain identity, from SSH keys to self-sovereignty Let me tell you...

Original article
DEV Community
Read full at DEV Community →
Full article excerpt tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3822717) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Tanisha fonseca Posted on Apr 28 You Already Understand Solana Identity: You Just Don't Know It Yet #100daysofsolana #solana #web3 #blockchain A Web2 developer's guide to on-chain identity, from SSH keys to self-sovereignty Let me tell you about the moment it clicked for me. I was on day three of learning Solana, staring at a terminal that had just printed a 44-character string: my new wallet address. I ran one function, and suddenly I existed on a global, permissionless network. That felt like magic. But it's not magic. It's math you've already worked with before. The SSH Key You've Been Using Without Realizing It If you've ever set up a GitHub account with SSH access, you've done this: ssh-keygen -t ed25519 -C "[email protected]" Enter fullscreen mode Exit fullscreen mode That command creates two files: a private key (which you protect carefully) and a public key (which you paste into GitHub). GitHub stores your public key. When you git push, your computer signs the request with your private key, GitHub verifies it with the public key you gave them, and you're authenticated no password needed. Solana identity works on the exact same algorithm. Ed25519. Two keys, one pair. The difference? On Solana, there's no GitHub in the middle. You don't give your public key to anyone. You broadcast it to a network of thousands of validators, and your identity is established by mathematical proof alone. The "server" that recognizes your key is the entire Solana blockchain. import { generateKeyPairSigner } from "@solana/kit"; const wallet = await generateKeyPairSigner(); console.log(wallet.address); // Your address Enter fullscreen mode Exit fullscreen mode One function call. No server. No company. You just created a valid identity on a global financial network, entirely offline if you wanted to. Your Username Lives in Someone Else's Database Here's a thought experiment: open Twitter, GitHub, and your bank in three browser tabs. In each one, there's a record in a database somewhere that says "this email + this password = this user." That's your identity. And here's the uncomfortable truth: it's not really yours. It's theirs. They let you use it. Twitter can ban your account. Your followers, your handle, your history — gone. GitHub can suspend your repositories. Your bank can freeze your funds pending review. These aren't hypothetical edge cases. They happen regularly. The companies aren't necessarily being malicious they're following their own rules, regulations, or algorithms. But the point stands: you have access because they allow it, not because you cryptographically own anything. A Solana address is different at a fundamental level. It looks like this: 14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5 Enter fullscreen mode Exit fullscreen mode That 44-character string (a 32-byte Ed25519 public key encoded in Base58) is your identity. Not a pointer to a record in a database ,the identity itself. The Base58 encoding is a thoughtful detail: it deliberately excludes characters like 0, O, I, and l that look similar in most fonts, because humans are the ones copying and pasting these addresses. And ownership of everything associated with that…

This excerpt is published under fair use for community discussion. Read the full article at DEV Community.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Email

Discussion

0 comments

More from DEV Community