ergoplatform / eips

Ergo Improvement Proposals
64 stars 34 forks source link

EIP-0045 Ephemereal Tokens #99

Open andrehafner opened 9 months ago

andrehafner commented 9 months ago

Ephemeral Tokens Proposal

ccgarant commented 9 months ago

First thing I had to do is look up the definition of Ephemeral: "The term "ephemeral" comes from the Greek word "ephemeros," meaning lasting only one day or short-lived. It describes things that exist or are used for a very brief period before disappearing or being forgotten. This concept applies broadly, from natural phenomena like morning dew, which vanishes as the day warms, to digital technology where ephemeral data or messages are designed to disappear after a certain time to ensure privacy or manage storage efficiently."

ccgarant commented 9 months ago

Quick Summary of EIP-0045:

ccgarant commented 9 months ago

Seems like a lot of good use cases and logic for this type of token SC, great idea.

I would just like to understand the technical side and risks in a little more detail and from the collective intelligence here.

So from the users perspective, I send Erg to the Ephemeral SC addr, then I get the EIP-45 token in my wallet. When the block height is reached, a miner will consume the token, and it will automatically disappear from the wallet?

andrehafner commented 9 months ago

Seems like a lot of good use cases and logic for this type of token SC, great idea.

I would just like to understand the technical side and risks in a little more detail and from the collective intelligence here.

So from the users perspective, I send Erg to the Ephemeral SC addr, then I get the EIP-45 token in my wallet. When the block height is reached, a miner will consume the token, and it will automatically disappear from the wallet?

Tokens never are in your wallet, always in sc. you just have permission to transfer them to someone else’s wallet ownership and they have your wallet address in there indicating that your wallet is the owner (for other dapps to verify). Otherwise there would be no way to force burning as someone could hold token in wallet with .001 ergs in box (no miner incentive there). You send erg to a proxy contract and then an off chain bot mints it for you in the sc. similar how your reward GORTs live in the contract and sit there until you extract (but these you can’t extract).

ccgarant commented 9 months ago

Ah thank you. A diagram of how it might work lifecycle would be visually helpful, but you explained it well. Thanks.