Skip to main content

Command Palette

Search for a command to run...

[blockchain] Consensus algorithms

Updated
2 min readView as Markdown
[blockchain] Consensus algorithms
H

Hansei Cyber Security High Schoool (2022/3/2 ~ 2025/2/10)

Consensus algorithms are algorithms used by a large number of participants to make unified decisions. They are also called consensus protocols.

Because blockchains store data on a large number of nodes instead of a centralized server, each node needs to mutually agree that the data it records in a block is the original, untampered with version. The process and algorithm that leads to the creation of the correct block, with multiple nodes that want to steer the network in the right direction verifying each other, is called consensus.

1. Proof of Work**(PoW)**

It is a consensus algorithm that allows nodes with the most hashpower to create blocks during the block generation time.

The process of matching random values called nonces to generate a block is called mining, which can be understood as the computing power used to prove that the encrypted transaction information sent to the blockchain network has been captured in a new block and that the work of connecting the new block to the chain has been completed.

2. Proof of Stake**(PoS)**

It starts with the idea that nodes have a sufficient stake in the system. Miners are paid coins in the same way as interest, and all they need to do to get rewarded is to have a wallet connected to the blockchain network that holds a certain number of coins.

3. Delegated Proof of Stake**(DPoS)**

A concept in which each node with a stake in the system votes to delegate the validation of a transaction to another node to prove its validity. Used in EOS. A certain number of witnesses who have been delegated full authority create a block.

More from this blog

[알고리즘] 탐색 알고리즘 - Dfs / Bfs

탐색이란 많은 양의 데이터 중에서 원하는 데이터를 찾는 과정을 의미한다. 프로그래밍에서는 그래프, 트리 등의 자료구조 안에서 탐색을 하는 문제를 자주 다룬다. 대표적인 탐색 알고리즘으로 DFS와 BFS를 꼽을 수 있다. 깊이 우선 탐색(DFS, Depth - First Search) DFS는 Depth - First Search, 깊이 우선 탐색이라고도 부르며, 그래프와 트리의 깊은 부분을 우선적으로 탐색하는 알고리즘이다. 그림에서와 같이 갈...

May 15, 20251 min read

Vpn을 이용한 하이브리드 클라우드 구축하기

※ 터널링 VPN은 두 지점 간의 트래픽들을 암호화해서 누군가가 그 트래픽을 해석할 수 없도록 터널링 한다. 터널링을 통해서 캡슐화되어 있어서 실제로 WireShark 같은 걸로 통해서 트래픽을 도청하려고 보면 IP 등이 알던 것과는 전혀 다르게 되어있어서 해커들이 원하는 정보를 얻을 수 없게 된다. 키를 가지고 데이터를 암호화시키는 거고 터널 내부에 IP CIDR가 있는데 내가 로컬에서 이용하고 있는 데이터베이스의 10.0.0.0/24와 내가...

Dec 25, 20241 min read

Harold Lippin's blog

31 posts

Hackers studying blockchain