eRon Validator Hub

Within the eRon ecosystem, both BSC and ETH smart contracts play pivotal roles in assigning a unique chain ID to the eRon bridge application, alongside specifying the Block Header Verification Function (BHVF). This BHVF, crafted in Solidity, serves the crucial purpose of verifying block headers sans state transitions.

It encompasses the validation of block headers, ensures the accuracy of the chain for a specified number of blocks, and verifies signatures. Given that the default implementation of the eRon blockchain is EVM-based, the eRon Validator Hub bolsters this by accommodating a default chain implementation. Consequently, we've engineered this function to empower developers who opt not to rely on EVM or the Parlia consensus engine, enabling them to tailor their own verification processes.

                    
                      
                      interface IBlockHeaderVerificationFunction {
                      
                      
                            function verifyBlockHeader(bytes rawBlockHeader, address[] existingValidatorSet) external pure returns (address[] newValidatorSet);
                      
                      
                            function verifyCrossChainPacket(bytes rawBlockHeader, bytes receiptsProof, bytes rawReceipt) external pure returns (
                      
                      
                                  uint256 transferredAmount,
                      
                      
                                  address recipientAddress
                      
                      
                              );
                      
                      
                          }
                      
                      
                          interface ERONValidatorHub {
                      
                      
                          function registerERON(string projectName, address[] initialValidatorSet, IBlockHeaderVerificationFunction bhvf) external;                          
                      
                      
                        }