Solana Account Model — City Analogy
The Solana account model is likened to a city, where each account is a building with specific attributes. Each building has an owner, contents, and a structure that defines its purpose. The separation of program and data accounts allows for efficient management and upgrades without disrupting the entire system.
- ▪Solana accounts are compared to buildings in a city, each with an address, owner, and contents.
- ▪The owner field acts as a master key, allowing only the designated program to modify the account's data.
- ▪Program accounts are like factories that run code, while data accounts store user-specific information.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 577981) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } NIRANJAN LAMICHHANE Posted on May 27 Solana Account Model — City Analogy #blockchain #web3 #solana #100daysofsolana Think of Solana as a city Every building in the city has the same basic structure: an address, a size, an owner, and contents inside. That is exactly what an account is — a building. The blockchain is the city map that records who owns what building and what is inside each one.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).