Lesson 1

Basic Structure of Blockchain Accounts and On-Chain Identity

In traditional internet systems, user identities rely on platform-managed account systems. In the blockchain world, users generate and control their identities independently through cryptographic algorithms. Blockchain accounts are not only the entry point for participating in on-chain interactions but also link private keys, public keys, and addresses, forming the core foundation for understanding Web3 identity mechanisms.

Basic Concepts and Functions of Blockchain Accounts

A blockchain account can be understood as the identity gateway for users in a blockchain network. Each account corresponds to a unique address, which is used to receive assets, initiate transactions, and interact with smart contracts. Unlike traditional bank accounts, blockchain accounts are not created or managed by any central institution but are entirely generated and controlled by users through cryptographic mechanisms.

From a functional perspective, blockchain accounts serve several key roles:

  • Asset management gateway: All crypto assets held by the user (such as ETH, BTC, or other tokens) are recorded under the corresponding address
  • Transaction initiator: When users transfer funds or perform on-chain operations, the account is used to initiate and sign transactions
  • On-chain identity marker: The address itself serves as the user’s on-chain identity identifier
  • Interface for interacting with smart contracts: All operations in DeFi, NFT, or other on-chain applications are carried out through accounts

A blockchain account is not an actual container that stores assets. Blockchain assets are essentially recorded in the distributed ledger, while the account address is merely a tag used to identify asset ownership and operational permissions. Therefore, possessing the private key of an account means having control over the assets associated with that address.

Generation Logic of Private Key, Public Key, and Address

The security of blockchain accounts is rooted in cryptographic systems, with three core elements: private key, public key, and address. These three have strict mathematical relationships and together form the basic structure of the account system.

When creating a blockchain account, a random private key is generated first. The private key is usually a 256-bit number, and its randomness determines the security level of the account. Next, the system uses elliptic curve encryption algorithms to derive the corresponding public key from the private key.

The public key can be seen as the public version of the private key—it can be shared externally but cannot be used to deduce the private key. In actual use, the public key undergoes one or more hash operations to ultimately generate the address used by users in the network.

The entire generation logic can be briefly summarized as:

Private Key → Public Key → Address

Key characteristics to understand:

  • The private key must be kept strictly confidential; if leaked, assets may be completely controlled by others
  • The public key can be disclosed and is used to verify the authenticity of transaction signatures
  • The address is a result of further hashing the public key and is used to simplify on-chain identification and transaction operations

This structure ensures an important property: users can prove their asset control without revealing their actual private key information. This is a fundamental basis for blockchain’s trustless transaction capability.

Structural Differences Between EOA and Contract Accounts

Not all accounts in a blockchain network share the same structure. Taking Ethereum as an example, accounts are mainly divided into two types: Externally Owned Account (EOA) and Contract Account.

EOA is controlled by users and managed via private keys. The vast majority of regular users create EOAs when using wallets like MetaMask. The main feature of EOAs is that they can proactively initiate transactions and prove operational legitimacy through private key signatures.

In contrast, contract accounts are not controlled by private keys but are managed by smart contract code deployed on the blockchain. Contract accounts cannot proactively initiate transactions; they only execute preset logic when they receive transactions or calls.

The core differences between the two are reflected in several aspects:

  • Control method: EOAs are controlled by private keys; contract accounts are controlled by code
  • Transaction initiation capability: EOAs can proactively initiate transactions; contract accounts can only be called
  • Functional complexity: EOAs are simple in function, while contract accounts can realize complex logic (such as DeFi, NFT applications)

With the development of Web3 technology, account systems continue to evolve. For example, recent concepts like Account Abstraction aim to break down the boundaries between EOAs and contract accounts, enabling accounts to have both user control and smart contract logic capabilities—thus improving user experience and system flexibility.

Understanding these two account structures is a crucial prerequisite for further learning about on-chain finance, DeFi applications, and Web3 infrastructure.

Disclaimer
* Crypto investment involves significant risks. Please proceed with caution. The course is not intended as investment advice.
* The course is created by the author who has joined Gate Learn. Any opinion shared by the author does not represent Gate Learn.