Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: bitsta on January 02, 2014, 01:33:30 PM



Title: Bitcoin SRC: vAlertPubKey - scriptPubKey
Post by: bitsta on January 02, 2014, 01:33:30 PM
hi,


i am just studying the sourcecode of different cryptocurrencies
and i saw this part in the code:

chainparams.cpp
Code:
vAlertPubKey = ParseHex("045337216002ca6a71d63edf062895417610a723d453e722bf4728996c58661cdac3d4dec5cecd449b9086e9602b35cc726a9e0163e1a4d40f521fbdaebb674658");


i also checked the headerfile and understood that this public key is used to sign broadcast messages..

what i don't understand is what kind of public key that is? it's a 128 Character key with leading 0x04 at beginning --> so total of 130 characters. If the public key used here is a public key linked to a BTC-address how did the developer integrate
that in the source?? did they first compiled the source/merkle/genesis hash, let the system run, generate an btc-address and afterwards included the public key in the source???

regards
bitsta


Title: Re: Bitcoin SRC: vAlertPubKey - scriptPubKey
Post by: Mike Hearn on January 02, 2014, 02:44:43 PM
It's just a regular ECDSA public key. Nothing special about it at all.


Title: Re: Bitcoin SRC: vAlertPubKey - scriptPubKey
Post by: bitsta on January 02, 2014, 02:51:07 PM
It's just a regular ECDSA public key. Nothing special about it at all.

thank you very much for the fast response.
now it s clear for me.