Author

Topic: NEW BOUNTY .1 BTC: Modify Genesis Block Creator to include Yescrypt algorithm (Read 433 times)

newbie
Activity: 225
Merit: 0
Any more progress on this? Do you have another thread I can follow or will you be posting here?
jr. member
Activity: 42
Merit: 2
Congrats on winning the bounty lol!

I'm looking forward towards checking out your new coin.
member
Activity: 322
Merit: 54
Consensus is Constitution
Edit: this seems to work.  need to first do it for mainnet then do the same thing for testnet and regnet.  May need to create a clean fork to put these values into that are generated below, the fork you put this code into might get messed up.

Edit: Mabye I spoke too soon, says "assertion hash genesis block failed" when I run the genesis block that the below steps created:

Looks like I figured it out!  I win the bounty lol.  Check out my code at github.com/yenten2/yenten and here is the excerpt from chainparams.cpp

            printf("calc new genesis block\n");
            printf("hashMerkleRoot %s\n", genesis.hashMerkleRoot.ToString().c_str());
            printf("bnProofOfWorkLimit 0x%x\n", bnProofOfWorkLimit.GetCompact());
            printf("genesis.nBits 0x%x\n", genesis.nBits);

            for (genesis.nNonce = 0; ; genesis.nNonce++) {
                hashGenesisBlock = genesis.GetHash();
                if (hashGenesisBlock <= bnProofOfWorkLimit.getuint256()) break;
            }

            printf("hashGenesisBlock %s\n", hashGenesisBlock.ToString().c_str());
            printf("genesis.nNonce %d\n", genesis.nNonce);

Compile it, and attempt to run ./yentend (or .bitcoind or whatever equivalent in your coin) and it will look like it froze, come back in a few hours and you should have a genesis hash displayed on the screen that meets the difficulty!
member
Activity: 322
Merit: 54
Consensus is Constitution
This is nearly $1000 for a simple program.  Where are the north korean hackers? lol.
member
Activity: 322
Merit: 54
Consensus is Constitution
my current code is at:

https://github.com/yenten2/yenten.git

Here is a walkthrough on creating genesis block but some of the pages are down:

https://bitcointalksearch.org/topic/m.4223449

See if you can get my code to mine a genesis block using this tutorial and if so you qualify for the bounty!
member
Activity: 322
Merit: 54
Consensus is Constitution
Not really able to help with the genesis block but interested in the coin you plan to create. Can you tell me a bit about it? How many coins are you thinking of and what do you want to call it?

I'm curious to see a new coin get created and how it does. As a newbie, I can't send you pms.

check out chromaton.org and the technicals board.
member
Activity: 322
Merit: 54
Consensus is Constitution
Looking at the yenten source,  the genesis block portion isn't really setup all that different from the bitcoin source.
You should be able to follow some of the altcoin forking/bitcoin cloning guides to get an idea of what you'll need to change to create a new genesis block.
Hint:You'll be wanting to look at chainparams.cpp and checkpoints.cpp.
If you run into issues, hit me up.

I've been doing some similar work.  If I get some free time I'll add hack together a genesis block creator.



Thanks man.  I have been working on it and those guides just don't seem to work right.  bitzeny may have some code to create a genesis block in chainparams.cpp but still struggling to get it to work in yenten as bitzeny doesn't compile.

Anyway lets try to get this working, yescrypt is THE cpu only algorithm!

And don't forget the bounty I would be happy to give it away even just for "information that leads to a working genesis block" lol.
member
Activity: 127
Merit: 11
I wish you well on this bounty.  Will be keeping my eye on your progress.
jr. member
Activity: 42
Merit: 2
Looking at the yenten source,  the genesis block portion isn't really setup all that different from the bitcoin source.
You should be able to follow some of the altcoin forking/bitcoin cloning guides to get an idea of what you'll need to change to create a new genesis block.
Hint:You'll be wanting to look at chainparams.cpp and checkpoints.cpp.
If you run into issues, hit me up.

I've been doing some similar work.  If I get some free time I'll add hack together a genesis block creator.

newbie
Activity: 225
Merit: 0
Not really able to help with the genesis block but interested in the coin you plan to create. Can you tell me a bit about it? How many coins are you thinking of and what do you want to call it?

I'm curious to see a new coin get created and how it does. As a newbie, I can't send you pms.
member
Activity: 322
Merit: 54
Consensus is Constitution
member
Activity: 322
Merit: 54
Consensus is Constitution
Also, if you can create a new genesis block another way for yenten and explain how you did it then I will reward the bounty for that.  I am just looking to create a new genesis block for yenten.  Is this bounty a good deal or i it too low?  If you are interested in working on this post here or at least private message me so I don't start looking elsewhere for help.
member
Activity: 322
Merit: 54
Consensus is Constitution
member
Activity: 322
Merit: 54
Consensus is Constitution
Get a chunk of the premine for your help!
member
Activity: 322
Merit: 54
Consensus is Constitution
*See the comments I have made this even easier to win*

.03.1 Bitcoin bounty (plus 100 blocks worth of coins of my new altcoin which this will help create) to whoever can make (any) genesis block creator work with a yescrypt algorithm coin based on Yenten.

I'm thinking you would use this genesis block creator as a base to modify:
https://bitcointalksearch.org/topic/ann-genesis-block-generator-181981
(to compile that code in linux use terminal:
gcc genesis_generator.c -o genesis_generator -lcrypto)

but any genesis block creator is fine.


Here is a coin that uses yescrypt, the applicable files are in src folder in hash/yescrypt

https://github.com/conan-equal-newone/yenten

It must allow for modifying these settings found in yescrypt.c and still work:
#define YESCRYPT_N 4096
#define YESCRYPT_R 16
#define YESCRYPT_P 1
#define YESCRYPT_T 0

The yenten genesis block creator that you make must:

It must be able to work with the Yenten code implementation of yescrypt which may be different than current yescrypt release. (ie: If anyone wanted to clone Yenten by creating a genesis block with your program, it must work).  Ideally it would work with any yescrypt release, but it is only required to work with the way yescrypt is used in yenten.

It will be released open source.

It must be well documented/commented so anyone can easily know how to use it and how the code was designed so it can be easily modified and maintained in the future.

Ideally it should also work to clone Koto, a zcash clone with yescrypt, but this is not a strict requirement:
https://github.com/koto-dev/koto

Basically what I am looking for is the ability to create a new altcoin by cloning yenten; since there is no genesis block generator for yescrypt this is where you come in.

Not only will you be getting a bitcoin reward right now, you will also own a piece of the new altcoin I am making that your work will have helped to create.  100 blocks worth of coins.

Questions, concerns?  Post below.

Thanks!
Jump to: