# RPoS 합의 알고리즘

ROM\_COIN은 블록체인 기반의 분산 장부를 유지하기 위해 RPoS(Random Proof of Stake, 랜덤 지분 증명) 합의 알고리즘을 적용합니다. 이 방법을 선택한 이유는 트랜잭션 처리 속도를 향상시키기 위함입니다. RPoS는 PoS의 문제점인 지분이 많은 노드의 불법 행위와 DPoS의 증인에게 몰린 권한 문제를 해결하기 위한 방식으로, 노드들 중 상위 활동 노드(TAN: Top Active Node)를 선발하고 임의로 증인(Validator)을 선출하는 방식을 통해 보안과 합의를 이루는 알고리즘입니다. 이를 통해 PoS의 Nothing at Stake 문제와 장거리 공격 문제, DPoS의 권한 집중 문제 등을 해결하고자 합니다.

RPoS 방식의 블록에 대한 증명 조건은 아래와 같습니다.(*h는 해시함수, n은 블록높이, nonce는 1씩 증가하는 32bits의 수, bal(A)는 A가 가진 지분%, D는 난이도, f는 목표값 계산함수*)

<figure><img src="/files/lfaY8xSwHadIn8N5R2UC" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docskr.romrom.io/rom-coin-2/rpos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
