How to make a new blockchain from scratch

33

13

In the same vein as setting up a private DNS root server and using whatever domain names you want, how do you generate your own blockchain and mine your own coins?

P.S. I don't want any answers like "why would you want to?" I want to do it because it can be done

supertaco

Posted 2013-10-28T18:41:58.360

Reputation: 469

There's never going to be a tutorial for something so non-standard. Go read the code and learn how to make a new genesis block, otherwise, you're out of luck.Anonymous 2013-10-29T00:36:23.423

7translation: I don't know - go figure it out yourselfsupertaco 2013-11-01T18:15:17.563

2Did you figure it out? Maybe you can share your learning and code. Thankscodesalsa 2015-04-22T22:03:10.757

Answers

13

I think I Found it. Someone wrote a C program to generate a genesis block. Code is on github here:

https://github.com/Gnaf/GenesisBlockZero

The original code was pulled from a discussion on the bitcoin developer forums:

https://bitcointalk.org/index.php?topic=187888.

Compile and run the program to generate the initial SHA256 hash, the time and nonce, then plug those into the bitcoin main.cpp source and recompile. I think that's all you have to do to start a new blockchain.

supertaco

Posted 2013-10-28T18:41:58.360

Reputation: 469

7

You can do this really easily with MultiChain, and even make your blockchain permissioned, i.e. only accessible to certain entities.

Gideon Greenspan

Posted 2013-10-28T18:41:58.360

Reputation: 324

1I can attest to this, multichain has a robust codebase for building blockchains. Still early days, but in my analysis of 20+ codebases, multichain / coinspark are the heavy hitters.Alex Waters 2015-07-09T18:44:56.583

2

http://build-a-co.in/ You can find all you want and very specific changes

dumb waiter

Posted 2013-10-28T18:41:58.360

Reputation: 29

0

You would want to use Testnet in a box

Dr. McKay

Posted 2013-10-28T18:41:58.360

Reputation: 146

0

You can use something like Multichain to build the basic blockchain part of it. You can see my article on how to use Multichain here

Arnav Kamath

Posted 2013-10-28T18:41:58.360

Reputation: 1

There is a above answer with your same answer.Marc Alexander 2017-11-15T17:29:06.883

For the record, even though this answer is similar to another, I'd like to see it kept since it has a different set of instructions at the given link that may be useful.Highly Irregular 2017-11-15T20:29:44.710