1/ One of the mental barriers I'm working through right now is limiting contract minting functionality. I could use some input.
How do only allow users to mint what they earn while playing the game? π§΅
@lxmambo Every time the game wants to record a transaction, that's a gas fee. We'd be talking a LOT of small transactions, which I guess is fine, but not ideal.
Ideally: One transaction to claim everything from the session. Sort of like...."saving your game".
7/ Will this work? Am I even thinking right about what a hash can do?
(decode data and include a secret key that's only decodable by someone with that secret key)
6/ Random Thoughts π
- The frontend submits a decodable hash that contains the "what I earned" data?
- Hash requires some sort of secret key, right?
- Backend verifies the hash, contents (loot), submits a transaction to the contract to mint + transfer NFTs to the character.
Dipping my toes in learning Solidity for contracts that'll eventually be needed.
Highly recommend subbing to Smart Contract Programmer on Youtube. Short, concise videos with great explanations and examples.
https://t.co/KYhz8D0Wem
@ltsDeath @SeanNg79596995 Agree! I actually have that ready to go, but I am working on the ability to tab focus between the game and chat.
In a prior test, it spammed chat. π€£