nasa8x / node-genesis-block

Create Genesis Block for Bitcoin, Litcoin, Dash, X11, X13, X15, X17, Geek, Quark, Keccak, Qubit, NeoScrypt, Scrypt...
https://morioh.com/topic/blockchain
39 stars 92 forks source link

x16r Incorrect Outputs #16

Open RossClelland opened 6 years ago

RossClelland commented 6 years ago

Hello,

I'm trying to recreate the Raven Coin and Proton Coin genesis blocks which both use x16r however neither appear to work for slightly different reasons.

RVN Command: -a x16r -t 1514999494 -z "The Times 03/Jan/2018 Bitcoin is name of the game for new generation of firms" -n 25023712 -v 500000000000 -b 503382015 -p 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f Output:

pzTimestamp: The Times 03/Jan/2018 Bitcoin is name of the game for new generation of firms
pubkey: 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f
bits: 503382015
time: 1514999494
merkle root hash: fe91bee0581c7c4aa11c79545c253446054426c25f9298263180623aa187ddc5
Searching for genesis hash...
nonce: 25467455
genesis hash: 00000fd2d915ca2cd0d142784cf42d89a65b2b7e2eef60e83067b585e1bcac34

Expected Output hashMerkleRoot=28ff00a867739a352523808d301f504bc4547699398d70faf2266a8bae5f3516 hashGenesisBlock=0x0000006b444bc2f2ffe627be9d9e7e7a0730000870ef6eb6da46c8eae389df90

Proton Command -t 1514160000 -z "Proton coin will start 25 Dec 2017" -n 1648566 -a x16r -v 5000000000 -b 504365040 -p 040a3ada5ba6280b99f49a92ba47221e6a72af844ec49d0c8bbdae1ec09a4c79b22e42eefe670ae04490556f91780eb57de76493d020c91d0c421c2fa052b28a2b Output

algorithm: x16r
pzTimestamp: Proton coin will start 25 Dec 2017
pubkey: 040a3ada5ba6280b99f49a92ba47221e6a72af844ec49d0c8bbdae1ec09a4c79b22e42eefe670ae04490556f91780eb57de76493d020c91d0c421c2fa052b28a2b
bits: 504365040
time: 1514160000
merkle root hash: 33a98e8f8089165dc24358b01d52dd740011bdbffad052d51d3ac3588af2f487
Searching for genesis hash...
nonce: 1785462
genesis hash: 000002c591373a53a2e0a33eced290b0fecfb4cd96beac05d2fb42f85488bdca

Expected Output hashMerkleRoot=0x33a98e8f8089165dc24358b01d52dd740011bdbffad052d51d3ac3588af2f487 hashGenesisBlock=0x00000e1728b630fd83aecbc51546c7915fffb7d3c897b5fd8c4b14043070b7f0

Cheers, Ross.

cryptforall commented 6 years ago

var script_prefix = '04ffff001d0104' + psz_prefix + Buffer.from(String.fromCharCode(tz.length)).toString('hex');

the prefix is probably not the same on the code vs genesis node.

ngtrix commented 5 years ago

Has anyone found a solution?