Introduction to REI Network Slash Mechanism
The consensus algorithm of the rei-network is
reimint. In order to finalize the next block,
reimintwill collect votes from the top 21 validators for each candidate block. When the voting power collected by a certain candidate block is greater than 2/3 of the total voting power of the top 21, the block is produced. It is conceivable that if a validator signs multiple candidate blocks at the same height, the final result may finalize multiple blocks. In the worst case, it means that the blockchain has forked, and at this time all transactions may be rolled back to the height at which the fork started, and the status of all transactions cannot be determined.
Assuming that if the current block height is 100, and the confirmation height of the exchange deposit is 10, the attacker initiates a recharge to the exchange at the height of 100, and is confirmed by the exchange at the height of 110, and then the attacker immediately sells all the tokens into stablecoins on the exchange and withdraw them to other blockchains. If the attacker successfully launches a multi-signature attack at a height of 100 to roll back all subsequent transactions, the final result is that the tokens are still on the attacker's account, but the attacker managed to steal the equivalent of stablecoins from the exchange.
In order to prevent this from happening, multi-signature validators must be punished. All validators in the network (block-producing validators and non-block-producing validators) will continuously collect all votes, and once a validator is found to perform multi-signature, it will be packaged all repeated signatures to generate a proof, and then broadcast this proof to the whole network. When packing a block, the block-producing validator will pack the evidence it currently collects into the block header. When processing a block, the proof recorded multisig validators are slashed.
At present, the single slashing ratio set by the rei-network mainnet is 20%. This means that all users who voted for the slashed validator and the validator itself will lose 20% of the REIs.
The first proof on rei-network appeared at the block height of 9185063. After decoding the extraData, the following two repeated votes can be obtained (for the convenience of observation, it has been converted to JSON format)
The meaning of each field:
Q: Why is the height of the block different from the height of the signature, one is 9185063 and the other is 9185061?
A: Because it takes time from the emergence of multi-signatures to the proof being packaged
Q: Why is the hash of one of the votes is
A: Because in
reimint, if the validator votes for
0x00....0000, it means that the validator wants to enter the next round of voting. For many reasons, such as the validator doesn't receive this round of proposed blocks in time
- Run two validators with the same address at the same time
- The validator's private key leaked
- Malicious tampering validator program