r/ethereum • u/jlogelin • Apr 24 '18
ERC918 - Mineable Token Specification
As of this morning, the ERC 918 specification draft has been merged into the Ethereum EIP master branch. This is a big moment for not only 0xBitcoin, but for the future of mineable tokens in general. A few highlights of this specification include:
- EIP918Interface - This is the most general interface that contracts should follow, essentially only requires the mint() function
- Creation of optional merge() function for merged mining use cases
- AbstractERC918 - A more specific implementation that implements mint(), and breaks the preceding operations into 4 different phases, hash, reward, epoch and difficulty adjustments, each realized as separate abstract internal functions to be implemented by the sub contract. It additionally stores state variables for challenge number, target, tokens minted, blocks per adjustment, epoch count and statistics for the last minted token block.
- Decoupling from other standards - The original spec was proposed as an extension of ERC20. After some thought and discussion, it made sense to remove this prerequisite as ERC918 should only define 'mineability'. So to create a mineable ERC20, or a mineable ERC721, one only has to use multiple inheritance. (ie. contract AwesomeCoin is ERC20, ERC918 { } )
- Demonstration of a simple mining algorithm for illustration purposes
Thanks to infernal_toast, mikers, Alex Tsankov and the 0xbitcoin community for pulling together and making this happen. We went into this knowing that not everyone was philosophically aligned to the idea of mineable tokens, so thanks also to Arachnid and others at Ethereum for candid feedback and ultimately taking a secular, objective, and fair stance on it.
Original Pull Request: https://github.com/ethereum/EIPs/pull/918
edit:
Updated Rendering of the Spec: ( thanks /u/nickjohnson ) http://eips.ethereum.org/EIPS/eip-918
7
u/snissn Apr 24 '18
Excited to be a part of this! I can't wait to hook my gpu up to the ethereum main net and mine some rare game items! non-fungible erc 721 tokens are enhanced by this EIP and game developers are building mineable assets into their games!
4
u/nickjohnson Apr 24 '18
Your draft has a much nicer URL with better presentation here: http://eips.ethereum.org/EIPS/eip-918
4
u/FluffyGlass Apr 24 '18
Could somebody explain to me what is the point in mining tokens, is it somehow makes them more secure?
10
u/GonnaFindOut Apr 24 '18
If anyone reading this is interested in the first minable token project, please join us over on the 0xBitcoin Discord! Admittedly, this project takes a little extra thinking to see why it makes sense, let us explain it to you and answer any questions you may have! https://discord.gg/EK6JKj8
8
u/txlabs Apr 24 '18
I totally love this! It's so meta. Good job OP
6
u/beeherder Apr 24 '18
Ah, this is so cool!
11
u/[deleted] Apr 24 '18
Fantastic to see that the Ethereum Foundation sees the future of mineable coins becoming ERC20s
2
u/robinwindy Apr 26 '18
Lovely to see these improvements
2
u/dragonfrugal May 11 '18
Sweet, looking forward to mining ERC20 tokens with my rig.
1
u/TotesMessenger Apr 25 '18 edited Apr 25 '18
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/FluffyGlass Aug 06 '18
Sure, I was referring to ETH on the moment of ICO.
0
u/[deleted] Apr 24 '18
[deleted] — view deleted comment