The Golden Key to the Whole-chain Game Arcade Account
Golden Key to Whole-chain Game Arcade Account
Thanks to the Play-to-earn model, GameFi games like StepN have quickly become popular and attracted more and more funds into the track. According to statistics from Blockchaingamer, a blockchain game platform service provider, as of November 2022, the investment in the blockchain gaming industry has reached as high as $2.56 billion. However, due to the immaturity of economic models and infrastructure, the concept of GameFi cooled down quickly under the influence of capital.
In 2023, people will shift their development focus to fully on-chain games. For fully on-chain games, in addition to the digital assets in the game, all the game logic also occurs on the blockchain. This means that every state change of the game contract needs to be registered on the blockchain, and players need to sign transactions for every operation in the game. This is a very poor player experience, especially for high-frequency operation games like RTS (real-time strategy).
Session Key is a solution to the inherent poor game experience of native encrypted games. It aims to utilize account abstraction and some clever innovations on Starknet to allow encrypted game players to sign transactions less frequently for each operation. Today, Loot Realms has released the first implementation based on Session Key – Arcade Accounts. With the Arcade Account feature, players can securely store their keys in browser storage, without the need to sign transactions for every “attack” operation in the game, thus achieving a smoother player experience.
What exactly is an Arcade Account? What is its operating principle? Before answering these questions, let’s first understand what a Session Key is.
What is a Session Key?
A Session Key is an idea jointly initiated by the teams of Briqs, Realms, and Topology at the Starknet hackathon one year ago. It aims to utilize account abstraction and some clever innovations on Starknet to solve the inherent poor experience of native encrypted games – players need to sign transactions for every operation in the game.
- Reflecting on the Bybit compensation incident, what kind of financi...
- An In-depth Analysis of LianGuairadigm, the Top Cryptocurrency Vent...
- Weekly Preview | Coinbase launches Base mainnet; Web3 compliance so...
In on-chain gaming scenarios, each operation in the game will trigger a wallet pop-up, requiring the user to confirm “Do you want to confirm this transaction?” At the same time, there may be some content that most people cannot interpret, which may lead to errors, confusion, and even loss of money.
A Session Key allows users to pre-approve interaction rules with a specific Dapp, such as a specific duration, maximum gas limit, restrictions on the maximum transaction volume of tokens, or specific functions of a particular contract, etc. In this way, game players can interact freely within these limited rules without having to sign every transaction.
In other words, with a Session Key, players can enjoy the fun of Dapps while confirming that their assets are protected. Because Session Keys have already limited what Dapps can and cannot do. This means that when you play on-chain games, you will not be bothered by endless confirmations and you will be clear that the most valuable assets in your wallet are safe.
What is Arcade Accounts?
Arcade Accounts is the first implementation of session keys on Starknet using account abstraction by the Realms team.
By adopting (restricted) middleware, Realms players can create a new type of Arcade Account, greatly improving the user experience of on-chain games.
Essentially, an Arcade Account is a Starknet account with some functional variations, including:
– Each Arcade Account has a master account
– Accounts at levels other than the master account cannot transfer ETH/Tokens out
– Other accounts can only sign transactions unless verified
In other words, Arcade Accounts provide limited player functionality, and the restrictions on these permissions minimize security risks. Even if an Arcade Account is exploited, attackers are powerless because the master account can withdraw all funds and create a new Arcade Account.
Starknet’s unique “declare contract” method reduces the cost of adding an Arcade Account to around 20 cents.
What is the experience of Arcade Accounts? Loot Realms demonstrates the intuitive experience brought to players by an Arcade Account in the lightweight mini-game Loot Survivor – “smooth in-game interaction experience without the need to sign every attack operation.”
Without using Arcade Accounts, players need to sign every attack operation in the game, which requires a long confirmation time. After adding an Arcade Account, users can securely store the keys in browser storage, eliminating the need for message signing and enabling direct attack operations in the game.
The above are just some basic features implemented by using contracts as accounts. Loot Realms will implement two advanced features next: automatic recharge when ETH is insufficient and token withdrawal when tokens arrive in the account.
In fact, session keys are not exclusive to Starknet technology, and the session key function of full-chain games is just one of the use cases unlocked by account abstraction. With the popularization and expansion of account abstraction schemes, wallets will become more secure and easier to use, and the Web3 world will attract more users.
Introducing Arcade Accounts for onchain games 🕹️
An experimental approach to Session-based keys using Account Abstraction on @Starknet
If you are an onchain gaming fan you will want to see this pic.twitter.com/tl4Lu0U9m4
— 🍞 (@lordOfAFew) August 5, 2023