Giter Club home page Giter Club logo

metamining's Introduction

MetaMetaMeta! Token

Meta-mining on ethereum network concept

Yo dawg. I heard you like mining... So I put a PoW mining inside Ethereum ERC20 token so you can mine tokens while you mine Ether!

Imagine standard ERC20-compliant token on Ethereum platform. Now, lets add simple proof-of-work check inside token contract, and reward whoever solves the PoW task with tokens. Bam! You've got lightweight implementation of Bitcoin on top of Ethereum. Isn't it meta?

Ofcourse its just for fun only. Mining (spending computational resources) doesn't protect the network from attacks (Ethereum network is already protected with its own mining), so it's only a tokens distribution to miner (and those tokens are useless and worth nothing).

Bonus! You can mine in your browser. I made a tiny Dapp for that. Requires Metamask plugin. M4K3 M1N1ИG GЯE4T 4G41И!

Current specs

  • 2.5 min block time (I know, there's no blocks here, its just a figure of speech)
  • Block reward: 5 tokens
  • Decimals: 8 (digits after dot)
  • Halving each: 210,000 blocks (1 year?)
  • Difficulty retarget: each block; simple (exactly as in bitcoin-core)
  • Algo: sha3 (aka keccak256)
  • Max cap: count yourself (mining wont stop after 64 halvings as in bitcoin-core)

This repo

Includes Contract (.sol file) source and Dapp source. License: WTFPL

TODO:

  • ERC20 compatible token
  • PoW check function
  • PoW target difficulty adjustment
  • Reward halving
  • Mining in browser tab (metamask integration?)
  • Someone review sources
  • Contract update (new version deployment), preserving all users tokens

Discussions posted

To be discussed:

  • Pre-mine: zero
  • total supply:
    • 21 mln ? (bitcoin)
  • How many decimals ? 8. (100,000,000 satoshis per btc)
  • token name? Meta Bitcoin ?
  • token ticker? META ? MET ? MBT
  • block reward:
    • 50 coins ? (bitcoin)
    • 5
  • block time:
    • 10 min ? (bitcoin)
    • 2.5 min
    • tied to ethereum block time (~17 sec) ?
  • reward halving
    • 4 years ? (bitcoin) - (The Bitcoin block mining reward halves every 210,000 blocks)
    • 1 year (4 times faster)
  • POW algo
    • sha256 ? (bitcoin)
    • sha3 ? (native thereum, + solidity & web3 built-in)
    • dynamic chain of different hashes? (is it asic-resistant?) e.g. sha256(keccak256(ripemd160(header+nonce)))
  • Difficulty target change
  • pow hash from ... ?
    • block.coinbase(current block miner’s address) + block.timestamp. Pros - no need to store value (random seed). Cons - changes too fast (every eth block, ~17 sec)
    • store randomness. Cons: each transaction will require more gas to overwrite it.
    • Dont store randomness. Hash senders pub address + smth else??

metamining's People

Contributors

overtorment avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.