Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: apple_talk on March 06, 2014, 07:07:29 PM



Title: txNew.vout[0].scriptPubKey in main.cpp?
Post by: apple_talk on March 06, 2014, 07:07:29 PM
txNew.vout[0].scriptPubKey
public ECDSA key

What is the purpose of this public key in the main.cpp? what is suppose to do? Where do you keep the private part of it? Does private key ever get used?


Title: Re: txNew.vout[0].scriptPubKey in main.cpp?
Post by: eb3full on March 06, 2014, 07:33:22 PM
It is used to generate the genesis block, from which all other blocks ultimately derive. Presumably Satoshi has the private key for that txout, but it's unspendable anyway.

https://blockchain.info/block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f

https://blockchain.info/tx/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b


Title: Re: txNew.vout[0].scriptPubKey in main.cpp?
Post by: apple_talk on March 06, 2014, 07:39:12 PM
Thanks, so assuming you create alt coin, just create key pair & update public key part of it here & forget about the private key as it will not be needed in the future, like updating to new version or version control etc. No need to store private key as it will never be used?