Blockchain Basics - mikebahao/hardhat-tutorial GitHub Wiki
Welcome to the hardhat-tutorial wiki!
Blockchain Design Philosophy
Decentralization
- Blockchain is a peer-to-peer distributed system.
- Transactions are mainly reflected in transfers.
- Transaction data is recorded in public ledger. How to ensure data consistency across different nodes?
consensus
- Nodes in distributed networks verify the legality of transactions.
- When most nodes on the network verify transactions,the data will be written into their own database.
- Mining is a consensus algorithm that solves witch attacks with economic thinking.
The internet for Assets
Security and Decentralization Trade-offs.
- Complexity of consensus algorithm:Consensus requires multiple nodes to be verified and communicated,increasing the time and complexity of consensus reaching.
- Decentralized Storage:Each node maintains a copy of the entire blockchain,Each transaction needs to be broadcast to the entire network and is verified and stored by most nodes.
Impossible Triangle
- Decentralization
- Security
- Efficiency
Ownership of data is an asset
- Decentralized systems are suitable for handling data assets.
- Data is stored in a decentralized network,and users have ownership of their own data.
Introduction to Smart Contract
Ethereum's smart contract
- Decetralization
- Data is transparent
- tamper-free
- Eliminate counterparty risks.
DeFi:Decentralized Finance
NFT:Non-Fungible Token
DAO:Decentralized Autonomous Organization
Send the first transaction
Ethereum's account type
- Hosting Account:coinbase
- Self-Hosting Account:metamask
gas fee
- gas fee = (gas limit)*(gas price)
- EIP1559(Ethereum Improvement Proposal 1559):gas fee = base fee + max fee +tips