Giter VIP home page Giter VIP logo

genesish0's Introduction

GenesisH0

A python script for creating the parameters required for a unique genesis block. SHA256/scrypt/X11/X13/X15.

Altcoin 创世区块

Create the original genesis hash found in Altcoin

python genesis.py -z "shanghai stock index closed at 3159.05, on 13th Apr., 2018" -a SHA256 -p 048a6fd44edaaf1686ba1663247d10866c8ee2af4b7ddb00d4294b01753e75f150bc1271ba5df0bd3d2e02a6643e55abfb2245a6a6ad487a70f2e1bb128c76194b -v 10000000000

Output:

algorithm: SHA256
merkle hash: 6da63808648b8a42f1025a932b35a49403b944d367b4032aadb16282c43e9a51
pszTimestamp: shanghai stock index closed at 3159.05, on 13th Apr., 2018
pubkey: 048a6fd44edaaf1686ba1663247d10866c8ee2af4b7ddb00d4294b01753e75f150bc1271ba5df0bd3d2e02a6643e55abfb2245a6a6ad487a70f2e1bb128c76194b
time: 1523793951
bits: 0x1d00ffff
Searching for genesis hash..
hgenesis hash found!
nonce: 375851493
genesis hash: 000000003976762ad74bdb76232eeaaa124cea80e12a8f8457cbf6f22edcb410

Dependencies

sudo pip install scrypt construct==2.5.2

To create geneses based on X11 algorithm you will also need to install the xcoin-hash module. For X13 you will need the x13_hash module and for X15 the x15_hash module.

Examples

Create the original genesis hash found in Bitcoin

python genesis.py -z "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" -n 2083236893 -t 1231006505

Output:

algorithm: sha256
merkle hash: 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
pszTimestamp: The Times 03/Jan/2009 Chancellor on brink of second bailout for banks
pubkey: 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f
time: 1231006505
bits: 0x1d00ffff
Searching for genesis hash..
genesis hash found!
nonce: 2083236893
genesis hash: 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f

Create the regtest genesis hash found in Bitcoin

python genesis.py -z "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" -n 2 -t 1296688602 -b 0x207fffff

Create the original genesis hash found in Litecoin

python genesis.py -a scrypt -z "NY Times 05/Oct/2011 Steve Jobs, Apple’s Visionary, Dies at 56" -p "040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9" -t 1317972665 -n 2084524493

Create a unique genesis hash with custom pszTimestamp

python genesis.py -a scrypt -z "Time flies like an arrow. Fruit flies like a banana."

Create the original genesis hash found in DarkCoin. (requires xcoin-hash)

python genesis.py -a X11 -z "Wired 09/Jan/2014 The Grand Experiment Goes Live: Overstock.com Is Now Accepting Bitcoins" -t 1317972665 -p "040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9" -n 28917698 -t 1390095618 -v 5000000000

Create the original genesis hash found in HiroCoin (requires xcoin-hash).

python genesis.py -a X11 -z "JapanToday 13/Mar/2014 Ways eyed to make planes easier to find in ocean" -p "040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9" -n 1234746574 -t 1394723131 -v 40000000000

Options

Usage: genesis.py [options]

Options:
  -h --help 显示帮助并退出
  -t 时间, --time=TIME 创世区块产生时间(unix),默认为当前系统时间
  -z 创世区块时间戳字符串, --timestamp=TIMESTAMP
  -n 工作量证明, --nonce=NONCE 搜索区块的次数用于证明工作量
  -a 算法, --algorithm=ALGORITHM 工作量证明算法: [SHA256|scrypt|X11|X13|X15]
  -p 公钥, --pubkey=PUBKEY 用于创建coinbase交易输出脚本公钥
  -v 金额, --value=VALUE
     the value in coins for the output, full value (exp. in bitcoin 5000000000 - To get other coins value: Block Value * 100000000)
  -b 难度, --bits=BITS

genesish0's People

Contributors

filipe3x avatar hhhguany avatar jojva avatar lhartikk avatar

Watchers

 avatar  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.