As an emerging cryptocurrency, SHIB token has attracted widespread attention from global investors. With the rapid development of DeFi and blockchain technology, the ecosystem of SHIB tokens is also constantly expanding. In this article, we will take a deep dive into the core components of the SHIB token, Heimdall and Bor, and how they work together to enhance the functionality and efficiency of the SHIB token.
Heimdall's role
Heimdall is an important component in the SHIB token ecosystem and is responsible for managing key aspects such as the selection of validators, block producers, span management, and the state synchronization mechanism between Ethereum and Shibarium. It uses a customized version of Cosmos-SDK and a fork of Tendermint called Peppermint. Such a design not only improves the efficiency of the system, but also enhances its security.
Collaboration between Heimdall and Bor: Heimdall's Bor module is responsible for managing span intervals and coordinating the interaction with the Bor chain. Specifically, it determines when a new span can be proposed on Heimdall, based on the current block number n and the current span span. When the current block number n of the Bor chain is within the range of the span's start block and end block (including the start block but excluding the end block), a new span proposal can be proposed. When these conditions are met, validators on the Heimdall chain can propose new spans.
Message structure: MsgProposeSpan
In Heimdall, the MsgProposeSpan message is used to set the validator committee for a specific span and record the new span in the Heimdall state. The structure of this message is as follows:
go type MsgProposeSpan struct { ID uint64 `json:"span_id"` Proposer hmTypes.HeimdallAddress `json:"proposer"` StartBlock uint64 `json:"start_block"` EndBlock uint64 `json:"end_block"` ChainID string `json:"bor_chain_id "` }
This design ensures clear records and transparent processes for each span of proposals, further improving the traceability of the system.
Producer selection process
The process of selecting a producer involves two main steps:
Slot allocation based on validator power: Each validator is allocated a certain number of slots based on its power. For example, a validator with a power rating of 10 will receive 10 slots, while a validator with a power rating of 20 will receive 20 slots. This approach ensures that validators with higher power have a higher chance of being selected.
Shuffling and Selection: All allocated slots will be shuffled using a seed from the Ethereum (ETH 1.0) block hash. Select the first producerCount producers from this shuffled list. Heimdall's Bor module uses Ethereum 2.0's shuffling algorithm for this selection process.
This selection method ensures a fair process and weights validators according to their power, thus maintaining balanced and proportional representation on the span committee.
in conclusion
The success of SHIB tokens depends not only on the support of its community, but also on the stability and efficiency of its underlying technology. The synergistic operation of Heimdall and Bor provides a powerful architecture for the SHIB token, ensuring fair selection of validators and efficient block production. As technology continues to develop, we have reason to believe that the future of SHIB tokens will be brighter.