How can we implement secure rollups on top of the Haqq blockchain with our own nodes
Create roll-ups on top of the Haqq blockchain with Native currency as ISLM.
Read of article "Rollups for Haqq Blockchain" - https://teletype.in/@halalcryptochat/OydBW1XDUcZ
Overview
In this article, we are exploring possibilities and examples of rollup implementations and how we can build rollups on top of the Haqq blockchain with our secure nodes and remains ISLM as the native currency. also explaining different ways of sending ISLM tokens back and forth between the Haqq blockchain and our own rollups chain
No worries, If you are still early into rollups and don't have a clear idea of rollups, we have an article regarding the basics of rollups. feel free to read the article given below
Before getting into exploring our roll-up possibilities let’s recipe 3 terms in rollups.
Rollups Terminologies
Off-chain scaling is the way in which we are indirectly scaling the main Haqq blockchain by adding more layers to process the transaction without using the actual core blockchain. These solutions further require additional hardware or complex software to be built. Layer 2 solutions derive their security from Ethereum and can be custom-built/run by an individual, organization, or community based on the use cases.
Rollups are layer 2 solutions such as channels that are fully secured by EVM chains like Haqq security but work well for a specific set of applications, organizations, or countries. Rollups settle the transactions outside of the Haqq network but post the transaction data back to the Haqq network.
Optimistic rollups use smart contracts deployed on the Haqq blockchain to manage the interaction between our rollups chain and the Haqq blockchain. Rollup users must deposit ISLM into one of these smart contracts deployed on the Haqq blockchain before getting an equivalent amount of unlocked ISLM on the rollup. that are called bridges
Examples of some ethereum rollups are Optimism, Arbitrum.
Now we are ready for thinking own creating our own rollup chain!
Rollup structure we need to implement
We need technology like optimistic rollup. in which it will scale the Haqq blockchain by passing messages between smart contracts on the Haqq blockchain and those on our own rollup chain. All of the transaction processing is completed on our own rollup chain and result of this is recorded on the Haqq blockchain
To start building Arbitrum applications, developers will need to connect to an Arbitrum node provider or set up their own Arbitrum node
Node is simply a device running the software of a specific blockchain. To start to build applications on our own blockchain developers need to connect to a node provider or need to set up their own node. So we should need to care about taking the node's structure seriously.
As with many blockchains, we can think of Individual nodes, thatcan choose to participate in our rollup chain. There we need validators who are involved in observing current activities and the state of the Haqq chain and full nodes help to aggregate Haqq transactions. Full nodes are also called Aggregators. Aggregators that submit transactions to the Haqq chain earn rewards paid in ISLM. while the rest of the user transaction fees are distributed to other network participants- such as validators
Validators are primarily responsible for the off-chain work of executing, maintaining, and monitoring the rollup chain. They can challenge the correctness of our roll-up block that is issued on the Haqq chain if they believe it is wrong. if the block is incorrect or challenge is proven unjustified, the lying validator will have their ISLM state slashed. it ensures validators always play fair or risk consequences.
We don’t need any separate settlement or native token in our rollup. our rollup contract can use any ISLM or any ERC20 token we like. We can use ISLM itself as settlment currency in our rollup chain. just need a bridge between haqq blockchain and rollup chain for transfering ISLM
Bridges between our roll-up chain and the Haqq blockchain are essential for transferring ISLM back and forth and also help in sending messaging between chains. In final it literally it will look like a user interface in which users can use the user interface to transfer ISLM and ERC20 tokens between chains. The Bridge is the essential glue for most of the layer 2 protocols as it allows them to communicate with the main chain. This is the only part of our roll-up chain that works with the Haqq blockchain and is therefore a set of smart contracts that are deployed on both chains. Bridges manage inbox and outbox of our chain and allow us to observe the result of transactions
If we are going more deeply into bridges. let’s assume people wanted to work with our rollups using ISLM, they can use one of our Bridges inbox contracts. to receive ISLM tokens or data on our roll-up chains. On contrary, an outbox contract accepts ISLM and data from our roll-up chain and adds it to the Haqq blockchain for reverse interaction. Because all of Bridges inputs and outputs are publicly verifiable, Haqq blockchain can identify and verify any off-chain activities.
Virtual Machine and Operation System
Before going through the topic let’s talk about EVM. EVM is the program that executes application code or smart contracts on the EVM-compatible blockchain. Haqq is an EVM compatible blockchain. anyone can write smart contracts on top of the Haqq blockchain using EVM-compatible programming languages like Solidity, Vyper, etc. So it is vital to implement a Virtual machine and an opening system for the rollup that works with EVM-compatible blockchains like Haqq blockchain.
The VM connects with the bridge and periodically verifies the transactions that take place between Haqq and our rollup by checking the validity of the same
The operating system on other hand is the operating system that runs on top of the VM and is responsible for the execution of contracts on the rollup chain. The operating system will completely run on our blockchain and it manages the execution of the Smart contract EVM (Ethereum Virtual Machine ) just they would be executed on the Haqq blockchain
A gas fee is a blockchain transaction fee, paid to network validators for their services to the blockchain. we need to implement a gas fee tracking system on our roll-up chain. it will help to track the cost of all executions happening in the rollup. Every virtual machine instruction has a gas cost. and the cost of a calculation is the total of our fees for the instructions in it compared to the Haqq gas limit. It should be much cheaper than Haqq’s gas fee. The current gas fee usually charges to compensate our rollups chains validators for the expenses
How to run Dapps on our Rollups?
In simple terms. Everyone can use EVM compatible compiler for compiling your Dpps solidity code! in our rollup chain. it is much more convenient and easy to migrate Dapps to our roll-up system.
If we go more deeply into the architecture side. Users are working with our own compiler, bridge, and validator implementations for working to run their Dapp on the roll-up chain. here developers use our compiler to compile their solidity contracts. This resulted in the creation of our own VM implementation. then they need to choose a group of validators to keep track of their VM’s execution and ensure that’s right
Users of their DApp will be able to use their browsers to access your existing front-end interface. Through behind-the-scenes messaging with your validators, the front end will automatically communicate with the running VM. By depositing funds into Dapp's wallet, Users can make calls to VM, and send ISLM or other Haqq-based tokens to the VM.
Conclusion
Rollups are the best solutions for scaling the Haqq blockchain to perform speeder and more secure transactions. we can create new highly secure isolated rollup chains for different purposes, organizations, and countries. with our node, and architecture specifications.
HAQQ blockchain can be used in the implementation of fintech projects based on the principles of Islamic finance. This blockchain network fully complies with the rules of Shariah, has its own digital currency and a Fatwa issued by well-known Shariah scholars. The Evergreen DAO Fund, funded by the issue of Haqq base tokens and managed by network participants, is designed to support innovative projects for the international Muslim community. High bandwidth makes Haqq an ideal tool for implementing digital campaigns.
IslamicCoin is a digital currency conforming to the rules of Islam and Shariah, functioning in its own blockchain Haqq, which means "Truth". Already at the stage of closed sales, IslamicCoin aroused huge investor interest and was able to raise more than $ 200 million in just a few weeks. Unlike technically outdated Bitcoin and Ethereum, which have a lot of problems, IslamicCoin uses the full power of the most progressive blockchain technologies and is based on the most fair and reliable ideology and rules of conduct.
Successful investors choose ideology, technology and prospects based on something more than minor fluctuations in price charts. For almost 20 years of the existence of a new type of digital money, cryptocurrencies have not brought a drop of real value into this world, have not made people free, independent and happy.
And this means that it's time for a new type of finance based on responsible choices and new values!
If you want to share your opinion about cryptocurrencies and blockchain technologies, please welcome Telegram chat. We need to know what you think!