daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. 0xLitecoin and merge mining tokens
  3. The EIP 918 Minable token standard — http://eips.ethereum.org/EIPS/eip-918 — has a specification for merge mining but as of yet that hasn’t been an implementation of it on the main net.
  4.  
  5. With 0xLitecoin — https://0xltc.org — I have released the first implementation of the merge mining based on the EIP918 spec. The article as described below is currently live in http://mike.rs Mike.rs’ pool and exists on this smart contract:
  6.  
  7. https://etherscan.io/address/0x33d99efc0c3cc4f93da6931ec2cccf19ca874b6d
  8. https://github.com/snissn/0xlitecoin-token/blob/master/contracts/_0xLitecoinToken.sol
  9. What is Merge Mining?
  10. Merged mining is the process of allowing two different crypto currencies based on the same algorithm to be mined simultaneously. Miners of 0xBitcoin can automatically become miners of 0xBitcoin and 0xLitecoin if their mining pool supports merge mining. Additionally the standard allows for many tokens to be simultaneously merge-mined, allowing for a new explosion of PoW mined ethereum tokens.
  11.  
  12. Technically, how does Merge Mining work?
  13. First an explanation of 0xBitcoin mining:
  14.  
  15. When a miner mines 0xBitcoin, they are finding a Nonce (an arbitrary number that can be used just once) that when hashed with the miner’s ethereum address (the pool’s address, or if solo mining the solo miners address, or if a mint helper contract is used, the mint helper contract’s address) and the current challenge for 0xBitcoin. A nonce is repeatedly selected such that the nonce, eth address and challenge when hashed together, are less than the mining target of the contract. The mining target is inversely related to the difficulty ( high difficulty, low mining target)
  16.  
  17. A general mining function written in python for finding a valid nonce for mined token 0xbitcoin, is as follows:
  18.  
  19. def mine(challenge, public_address, mining_target):
  20.   while True:
  21.     nonce = generate_random_number()
  22.     hash1 = int(sha3.keccak_256(challenge+public_address+nonce).hexdigest(), 16)
  23.     if hash1 < mining_target:
  24.       return nonce, hash1
  25. How does Merge Mining work?
  26.  
  27. 0xLTC actually uses the same algorithm for mining and the exact same challenge as 0xBitcoin. This means that a valid nonce (solution) for 0xBitcoin can be fully accepted by the 0xLTC contract and vice-versa. Metaphorically, tokens for 0xLTC and 0xBTC are both locked inside of the contract using the same “lock” and can both be unlocked with the same key.
  28.  
  29. A mining pool can take care of the technical implementations of this, so a token miner running any of the open source token miners linked here simply needs to point their miner at the pool, and they will be mining 0xBitcoin, 0xLTC and any future merge mined tokens supported by the pool!
  30.  
  31. Why and what’s next?
  32.  
  33. The “Why” of 0xLitecoin is to demonstrate how new tokens can be created, that are:
  34.  
  35. distributed to, and don’t distract miners away from 0xBitcoin
  36. don’t have an ICO or require any expenditure of capital from token earners
  37. sets a new standard for future mineable tokens to take instead of taking an ICO
  38. I will feel that this standard has success when a platform that had their sites on doing an ICO and instead chooses to make their token merge-mined with 0xBitcoin, launches their own compatible open source pool and finds success with their utility token without requiring the potentially fraud filled ICO path.
  39.  
  40. Why is it named 0xLitecoin?
  41.  
  42. Litecoin is very similar to bitcoin, the main differences are the mining algorithm, the block times which allow faster transfers and the idea that there are 4x as many coins distributed in 10 minutes. I wanted to launch a merge-mining token that can be different from 0xBitcoin, and have the differences be undestood. 0xLitecoin has 4 times as many tokens distributed per 0xBitcoin mint, just like litecoin vs bitcoin.
  43.  
  44. Additional Reading
  45.  
  46. This stack overflow write up of how merge mining works for bitcoin and name coin is very clear https://bitcoin.stackexchange.com/a/275 keep in mind that token mining has some differences, as token mining does not directly secure the block chain, but instead work contributes to token distribution.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top