Layer 2

In a gambling platform, the speed of plays and possibilities of going from one game to another or even hover in between games on more than one table is a fundamental characteristic for its users. This functionality is hardly conciliable with the intrinsic characteristics of a blockchain where transactions and writing on decentralized registers require the time necessary to close a block. However, today there are systems that allow you to securely keep track of transactions and off chain layer 2 data and then write them later on the blockchain, thus guaranteeing the speed of registration. de.ga realizes a proprietary layer 2 gambling systems that allows for the registration of game data immediately. The claim system allows the spending of DEGA tokens bound in a smart deposit contract called Vault, by signing incremental and decremental cryptographic claims.

For example, when a user spends DEGA, they sign a claim with the sum of the expenditure, this claim is verified and confirmed by the server, and consequently is deducted from the balance sheet deposited by the smart contract without the need for an on-chain transaction. A subsequent exchange must be added to the last existing user’s expense claim.

In the event of a user winning any quantity of DEGA, the server will sign a claim with the correct amount, and the user’s client will countersign. This claim represents a credit for the user and can also be spent in part, completely or together with another expense claim, only if there is not enough balance in the deposit to cover everything with a normal expense claim.

Moreover, all claims can always be redeemed on smart contracts through a transaction. All claims are incremental, and only the last claim is valid. In the event that a malicious user tries to spend a “vacchio” or previous claim, there are watchtower services that allow you to avoid this negative action by propagating the last actual claim.

In fact, only this is taken in consideration in the presence of a valid claim with a positive incremental number. The user in question is punished with the swipe of all his possible funds. In addition, to provide a complete set of tools suitable for integration into the existing de.ga platform, two macro components will be provided: a part of the HTTP API and a Javascript SDK.

Watchtowers

To guarantee the security of payments with exchange of cryptographic claims, it is necessary to constantly monitor payment channels so that the attacker does not spend an old payment status to obtain an economic benefit to the detriment of the de.ga server. Therefore it is necessary to install, configure and maintain a Node of the Binance Smart Chain.

It is very important that this system is on networks and machines that are completely separate and segregated from those serving the application, as their exposure can open an attack surface through techniques such as DDOS. The impossibility of knowing their position directly from the outside limits this problem. Writing data on blockchain once the table is finished will allow users to reduce their commissions for the transcription of on-chain games.

Last updated