The Hash Rush ‘RUSH Network’

The Hash Rush ‘RUSH Network’

The Hash Rush Dev Blog is back, giving you insights into how we are developing the game. In our last dev blog, we looked into the game development side exploring how planets are generated in Hash Rush. For this edition of the dev blog, we are going to look at how the game handles cryptocurrency (Rush Coin and potentially Tokenised assets) based transactions.

To handle the cryptocurrency based transactions in Hash Rush, we teamed up with VZ Chains to develop a custom network called the ‘RUSH Network’.

VZ Chains are a blockchain development company that is passionate about the values that blockchain stands for; transparency, decentralisation and true privacy. While working with them, they have proven to be experts in the domain, and have the passion, drive and imagination to envision new and innovative solutions.

So without further ado, let’s get straight into it!

What is the Rush Network and why we need it

To understand why we need the RUSH Network, we have to look at the use cases of Blockchain in Hash Rush and identify the problems that may come with it, all while considering our theme as an online RTS game.

Starting with our use case. Hash Rush will primarily use Blockchain for in-game asset trading. At this stage, this means that we are looking at using Rush Coin (RC) as our in-game currency. This currency will then be used by our players to purchase items from our item shop and also from other players. In the future, we may also consider allowing players to tokenise their in-game items, so some consideration to that should also be given.

By identifying the use case(s), we now have to consider the problems that using Blockchain may give us. In our case, using Rush Coin as a currency will present us with three major issues that need to be tackled.

Transactions sent over Blockchain are slow.

Transactions can be expensive, and the price can rapidly change depending on the network load.

For the casual gamer, understanding how to work with Blockchain technology may be too complicated.

These three points pose significant problems for Hash Rush as they do not exist in typical online games, and so should not exist in Hash Rush. This means that our solution has to speed up the transactions so that they are near-instant, remove the transaction fee (no matter how small it may be), and as far as possible remove the technical knowledge required from the player.

This is where the RUSH Network comes into play, as it solves these problems. Furthermore, it is flexible enough to be adapted to use with tokenised items, should we add that feature to the game.

Understanding the RUSH Network

When looking at the RUSH Network, the first thing that needs to be understood is that Hash Rush and the RUSH Network will only manage a single cryptocurrency wallet and not a unique wallet per registered account.

The RUSH Network then manages this wallet, alongside a traditional Oracle database that handles the in-game transactions and Rush Coin balance for the players. We’ll now explain how this works with the help of the image below.

Adding Rush Coin to an Account

Let’s start by explaining the process of adding Rush Coin to a players account.

When a player first registers an account with Hash Rush they will need to provide us with their private Ethereum wallet address (public key); this address is then permanently linked to their game account. From that moment on, the RUSH Network will continuously be looking for Rush Coin transactions that originate from that wallet address. If a transaction is received, the RUSH Network will update the balance of the player that has the Ethereum wallet address connected to their account.

Step 2The RUSH Network detects the transaction (after the Blockchain has verified it) and notifies the Oracle database that Rush Coin has been received.

Step 3Based on the address that sent the Rush Coin, the RUSH Network will know which player should have the Rush Coin made available to them; it will search for it and update the player’s balance.

If a transaction is made from a wallet that is not connected to any account in Hash Rush, the RUSH Network will decline the transaction, and it will bounce back to the original sender.

Spending Rush Coin in Hash Rush

The next part of the RUSH Network to understand is how players can spend their Rush Coin. After a player tops up their Rush Coin, until a purchase has been completed they no longer interact with the Blockchain, but instead the Oracle network. This means that all purchases and transactions can be completed instantly, with no transaction fee’s and do not require any cryptocurrency knowledge from the player. This is essentially how a typical online game handles the in-game currencies.

However, as we are making use of Blockchain, we can add some further steps (2 and 4 in our image) that create an open and transparent environment. Once the transaction has been handled by the Oracle database, the RUSH Network then temporarily holds the information and will write it in batches to the Hash Rush sidechain. This means that all purchases and trades carried out in Hash Rush will be discoverable to anyone that wishes to check them out by using our Blockchain explorer. Ultimately this means that we are taking the best aspects of a centralised system and merging it with the best elements of a decentralised system.

The Rush Coin sidechain

At this point, we need to take a moment to explain what the Rush Coin sidechain is and how it works, as it is an integral part of the RUSH Network. Looking in our diagram, this covers step 4 and step 5.

The RUSH Network decentralised sidechain is a high performance, EVM compatible sidechain. The structure of the RUSH network sidechain consists of two levels of Sharded POS (proof of stake) Blockchains.

The first level of the RUSH Network sidechain is the parent chain that delivers data to each of the individual chains below it (childchains). On this level, the assets are held in different smart contracts representing the balance of each marketplace. In this case, a marketplace represents the project where the Rush Coin will be used. In the RUSH Network, Hash Rush is a marketplace. The integrity of the parent chain is enforced by the RC token.

The second level of the RUSH Network consists of the childchains. Each marketplace that uses the RUSH Network is assigned its own childchain that is then used to manage the assets of it’s assigned marketplace. For example, as Hash Rush is a marketplace in the RUSH Network, it will have its own childchain that manages its assets.

Rush Coin trading can take place within a single marketplace, for example, all RC trading within Hash Rush, or they can take place over multiple marketplaces. Trades that take place within a single marketplace only impacts the balance of its own chain, whereas trades that occur over multiple marketplaces impact the balances on both the individual marketplaces and the parent chain.

Finally, we have the RUSH Network Ethereum smart contract which serves as the conduit between the Ethereum Blockchain and the RUSH Network, and holds all of the Ethereum assets that have been traded on the network, regardless of the source marketplace. When a user deposits Rush Coin to a particular marketplace from the Ethereum Blockchain (e.g. private wallets) they have to send the Rush Coin to the RUSH Network smart contract with the appropriate flag that indicates the marketplace that they are sending to. The funds are then locked in the smart contract, while new mirrored assets are created on the RUSH Network parent chain. These funds are then reflected in the user’s marketplace balance on the parent chain, and also propagate down into the marketplace childchain for trading.

So, what does this tell us about the RUSH Network? Other than it being an incredible piece of Blockchain technology that allows us to bring Rush Coin and in-game digital assets to Hash Rush, it is also flexible enough to allow other projects and games, not just Hash Rush-related to be built into the Rush Coin ecosystem. If you are interested in the RUSH Network and using it with your project, then we recommend you to get in touch with VZ Chains directly.

Who knows, in the future, Rush Coin may be the number one gaming cryptocurrency for Blockchain based games, the infrastructure is certainly there!

Closing Thoughts

We hope that you’ve enjoyed learning about how the RUSH Network works, if you have any questions, feel free to get in touch with us either by leaving a comment in the comments below, contacting us over Discord or sending us an e-mail.

Finally, we encourage you to check out the VZ Chains website for more information on the services they provide, from Smart Contract development, to Blockchain transitions to ICO marketing, launching and legal consulting.

About Hash Rush

An online sci-fi/fantasy RTS set in the fictional Hermeian galaxy, Hash Rush sees players build, fight and trade their way to victory as they grow and manage their small mining colony, battle monsters and trade valuable items and resources. Tasked with accumulating the sought-after Crypto Crystals on their planet, successful players will earn themselves Ethereum as well as in-game items, bonuses and other prizes.