loaf (👑) Profile picture
Apr 26 13 tweets 10 min read
What an insane 24hrs of sweaty coding at the @starkware hackathon with the giga brains @rvorias @wraitii @sylvechv @0xbellemere

The sheer amount of innovation in one room in 24hrs was mind-blowing 🧠

Recap of why we built the session key
@Briq @LootRealms @topology_gg Image
#devconnect for me has been about on-chain gaming (no surprise) however, we are *early* (not a meme).

On-chain gaming is the intersection of economics, game theory, and technology. But the current UX is clunky as players have to sign every transaction.
With dapps that require infrequent transactions, this is fine UX.

But the dream is near-RTS gaming on-chain with a high frequency of transactions. The UX breaks if they must sign multiple transactions a minute.

But there is a solution: Ephemeral session keys
By creating a one-time signing key stored in the browser a user only has to sign once during a game session.

This removes the need for the player to sign repeat transactions.

If solved correctly this is a 100x UX improvement that every on-chain game will implement. Image
So together the @LootRealms @briqNFT @topology_gg hacked together the world's first plant2earn "Starkdew Valley".

A simple plant than harvest game that requires the frequent signing of transactions. Image
The player sows seeds which then grow into plants and are harvestable after 20 seconds

The plant state is stored on-chain:
- Time planted
- X coordinate
- Y coordinate

and yes, the game is just harvesting plants. This is what the players really want... Image
In the demo, we showed the UX difference between a session key and no session key.

Before session key: the user must sign the planting of every seed.

After session key: the user only signs one transaction per session. Image
The idea for session keys is not really new, but with #StarkNet account abstraction feature it is possible to create complex session key contracts with specific permissions per dapp.

Potential features:
- Spend limit
- Function call restriction
- Multisig integration
What's next?
Native integration into @argentHQ to enable on-chain games to fully utilize this feature and onboard the next cohort of gamers.

At @LootRealms we will be implementing a version of a session key in our upcoming Settling game running on StarkNet using @argentHQ
It was an honor to hack alongside the other 160 hackathon participants some truly amazing minds that we will all be exposed to over the coming months and years.
Huge thanks to the following Giga brains hosting, judging & coaching:

@ukolodny
@EliBenSasson
@GuthL
@jniset
@0xGreg_
@bbrandtom

@StarkWareLtd
@argentHQ
@nethermindeth
@myBraavos
@shard_labs

@martriay
Thanks for the support from @LordSecretive @matchbox_dao @GrugLikesRocks
If you want to be one of the first players to use a session key in an on-chain game, join the Lords in the Realms discord

discord.gg/uQnjZhZPfu

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with loaf (👑)

loaf (👑) Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(