python script GenesisH0, GenesisBlockZero, both does not work with newest bitcoin(0.15.1)/litecoin source.
When use those and compile, those just spit out error at assert line in chainparams.cpp script.
Those uses pubkey variable, so it means public key, right?
It just assume that key or provide, can I use it as-is?
You might start off with what you are trying to accomplish.
For me this is pretty confusing. Could you provide more information about what you did and what error message you got?
Or how can I know my public key?
The public key is derived from the private key.
pubK = G * privK with pub = Public key; priv = private key; G = set of coordinates (x,y) on the secp256k1 elliptic curve
For more information about elliptic curve multiplication:
https://en.wikipedia.org/wiki/Elliptic_Curve_DSAShould I generate it? How?
You definetely need to generate a public key if you want to receive payments.
You either use a wallet/script/tool to create a priv-/pub keypair or go code it yourself. What are you trying to accomplish?
Thx for reply.
So eventually I want to generate genesis block and make it work.
Some thread replies recommend using GenesisH0 at github (
https://github.com/lhartikk/GenesisH0 )for generate genesis block. So I tried, but when run it, it automatically provide some pubkey. I meant can I use as-is for my script? And where at my source code this pubkey should I input?
But anyway, these hash and nonce value got by GenesisH0 seems not work. When I input them to my code, spit out errors. (same assert errors when wrong hash value was input)
So I just used printf method to get hash, merkleroot value, this works, now I passed this step.
Now after this, I need to create genesis block, all the old codes does not work, and also need to pass "CheckProofOfWork" function at "pow.cpp" file.
I am stuck here. I used "CheckProofOfWork" function at chainparams.cpp with #include "pow.h" above, but compile spit out errors. Says there is no definition of CheckProofOfWork, maybe this is C++'s link problem, but I don't know how to solve this?
And is this right for use this Check... function to generating valid genesis block?