Skip to content

Commit cdf983b

Browse files
committed
Add new content
1 parent 2a24ceb commit cdf983b

File tree

5 files changed

+63
-1
lines changed

5 files changed

+63
-1
lines changed

Basics/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## Loading, Compiling, Deploying
22

3-
This beginner level tutorial introduces Remix's interface and concepts used in Ethereum.
3+
This beginner level tutorial introduces Remix's interface and concepts used in Ethereum.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This section is a primer of Web3 concepts you will encounter. It covers what a blockchain is, a primer on the EVM, Ethereum accounts, transactions, gas, etc.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
id: intro-blockchain
3+
name: An introduction to the Blockchain and Ethereum
4+
summary: Understand the blockchain and how it works from the Ethereum perspective
5+
level: 1
6+
tags:
7+
- Blockchain
8+
steps:
9+
- name: Introduction to the Blockchain (for Developers)
10+
path: intro-to-blockchain
11+
- name: Introduction to the Ethereum Virtual Machine (EVM)
12+
path: intro-to-evm
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
A blockchain is an append-only ledger shared across many computers (nodes). Unlike a traditional database, you never edit or delete past entries; you can only add new entries that, together, define the latest state.
2+
3+
On public blockchains (some blockchains are private), identical copies of this ledger are widely replicated, and nodes accept new data only if it satisfies the network’s consensus rules.
4+
5+
## How blockchains work
6+
7+
At a high level, three parts cooperate: an execution layer that deterministically turns transactions into state changes, a consensus mechanism that orders blocks and decides what becomes canonical, and data availability/state so everyone can fetch and verify the data. When these are aligned, immutability is the practical outcome and rewriting history becomes economically prohibitive.
8+
9+
### Consensus mechanism
10+
11+
A consensus mechanism is how the network agrees on the next valid block. For example, **proof-of-stake**, where validators bond capital and can be slashed, and or **proof-of-work**, where miners prove computational effort.
12+
13+
### Execution Layer
14+
15+
The execution layer defines how transactions are interpreted and applied to state, step by step, the same way on every node. For example, on EVM chains (Ethereum and many L2s), contracts compile to EVM bytecode.
16+
17+
Note: Execution is separate from consensus; a network can change how it reaches agreement without changing how code runs, and vice versa.
18+
19+
### State changes
20+
21+
Users submit signed transactions that describe intended changes (transfer value, call a contract). Nodes execute these deterministically and, if valid, include them in blocks that extend the chain.
22+
23+
### Immutability
24+
25+
Immutability isn’t “forbidden by code”; it’s economically enforced. On Ethereum, blocks become finalized when ≈ two-thirds of staked validators attest to the relevant checkpoints. Reverting a finalized block would require creating conflicting finality—an act that implies slashing at least one-third of the total staked ETH. With roughly ~35–36 million ETH staked today, that’s on the order of ≥11–12 million ETH at risk, which makes rewriting finalized history prohibitively costly.
26+
27+
## Further reading
28+
29+
- [Web2 vs. Web3](https://ethereum.org/developers/docs/web2-vs-web3/).
30+
- [An introduction to blockchain and Ethereum](https://ethereum.org/developers/docs/intro-to-ethereum/).
31+
- [Consensus algorithms in blockchains](https://www.geeksforgeeks.org/compiler-design/consensus-algorithms-in-blockchain/).
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
The **Ethereum Virtual Machine (EVM)** is the engine that turns transactions into changes on Ethereum and other EVM-compatible chains.
2+
3+
It’s not one server. It’s a set of rules (a specification). Every node follows the same rules so that, with the same inputs, they all get the same result. The EVM defines what a smart contract can do, how data is stored, what operations exist, and how much those operations cost.
4+
5+
## How the EVM works
6+
7+
A user signs a transaction in a wallet and sends it to the network. A node checks that the signature is valid, that the account’s order number (nonce) is correct, and that the account can afford the maximum cost. The node then hands the transaction to the EVM with a gas limit.
8+
9+
Gas is the fee paid for computational work on Ethereum. It is paid in ETH (usually quoted in gwei), and a gas limit is the maximum number of gas units you allow the transaction to consume.
10+
11+
The EVM runs the contract code step by step. Each step uses some gas. If execution succeeds, the contract’s stored data (state) is updated and the transaction can emit events that your app can later read. If execution fails, the state changes are rolled back, but the gas used up to that point will not be refunded.
12+
13+
When it’s done, the node returns a receipt. The receipt says whether the transaction succeeded, how much gas it used, which events were emitted, and, if you deployed a contract, the new contract address.
14+
15+
## Further Reading
16+
17+
- [The Ethereum virtual machine](https://ethereum.org/developers/docs/evm/).
18+
- [The Ethereum Yellow Paper](https://ethereum.github.io/yellowpaper/paper.pdf).

0 commit comments

Comments
 (0)