0

This question already has an answer here:

Just wondering if you could make a ethereum token that is mineable. I saw this link, but don't really know about it and i dont know anything about solidity. Can someone please help me? Thanks, Crypthusiast

marked as duplicate by Ismael, shane, Richard Horrocks, Achala Dissanayake, Briomkez Dec 12 '18 at 13:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Yes, you could build this quite easily with OpenZeppelin along with EIP 918

Take a look at EIP 918: Mineable Token Standard. Proposed interface:

contract ERC918  {

   function mint(uint256 nonce) public returns (bool success);

   function getAdjustmentInterval() public view returns (uint);

   function getChallengeNumber() public view returns (bytes32);

   function getMiningDifficulty() public view returns (uint);

   function getMiningTarget() public view returns (uint);

   function getMiningReward() public view returns (uint);

   function hash(uint256 _nonce, address _minter) public returns (bytes32 digest);

   function _reward(address _minter) internal returns (uint);

   function _epoch() internal returns (uint);

   function _adjustDifficulty() internal returns (uint);

   event Mint(address indexed from, uint rewardAmount, uint epochCount, bytes32 newChallengeNumber);
}
  • Can you make it so i can copy and paste into it, i am a noob and dont know how – Crypthusiast Dec 16 '18 at 15:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.