# RPoS Consensus Algorithm

ROM\_COIN applies the RPoS (Random Proof of Stake) consensus algorithm to maintain a blockchain-based distributed ledger. This method is selected to improve speed for transaction processing. RPoS is a method to solve the problems of PoS, such as the illegal activities of nodes with a lot of shares and the authority problem of witnesses in DPoS, and it is an algorithm that achieves security and consensus by way of selecting the Top Active Node (TAN) among the nodes and randomly electing witnesses (Validators).

This makes issues concerning PoS's Nothing at Stake, long-distance attack, and DPoS' authority concentration solved.

The proof conditions for the RPoS-typed block are as follows. (h : the hash function, n : the block height, nonce : the number of 32 bits that increases by 1, bal(A) : the % of stake held by A, D : the difficulty, and f : Target value calculation function)

<figure><img src="/files/teiJswo4g8kr8mcDZkjK" 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://docs.romrom.io/rom_coin-blockchain/rpos-consensus-algorithm.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.
