Bitcoin Forum
April 26, 2024, 03:28:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: txNew.vout[0].scriptPubKey in main.cpp?  (Read 702 times)
apple_talk (OP)
Sr. Member
****
Offline Offline

Activity: 473
Merit: 250


"Proof-of-Asset Protocol"


View Profile
March 06, 2014, 07:07:29 PM
 #1

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?

|
 
 
50
|
 




                       ▄
           ▄▄▄▄▄▄███████
▄▄▄▄█████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████

█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
▀▀▀▀█████  █████████████
           ▀▀▀▀▀▀███████
                       ▀
|
 
 
$1,5 M
|



        ▄▄▄█████████▄▄▄
      ▄█████▀▀███▀▀█████▄
    ▄███▀     ███     ▀███▄
   ████       ███       ████
  ███▀                   ▀███
 ███▀                     ▀███
▄██▀       █████████       ▀██▄
███                         ███
███        █████████        ███
███                         ███
▀██▄       █████████       ▄██▀
 ███▄                     ▄███
  ███▄                   ▄███
   ████       ███       ████
    ▀███▄     ███     ▄███▀
      ▀█████▄▄███▄▄█████▀
        ▀▀▀█████████▀▀▀
|
 
|
 
<>
<>
<>
<>
 
GITHUB
TWITTER
YOUTUBE
FACEBOOK
1714102099
Hero Member
*
Offline Offline

Posts: 1714102099

View Profile Personal Message (Offline)

Ignore
1714102099
Reply with quote  #2

1714102099
Report to moderator
1714102099
Hero Member
*
Offline Offline

Posts: 1714102099

View Profile Personal Message (Offline)

Ignore
1714102099
Reply with quote  #2

1714102099
Report to moderator
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714102099
Hero Member
*
Offline Offline

Posts: 1714102099

View Profile Personal Message (Offline)

Ignore
1714102099
Reply with quote  #2

1714102099
Report to moderator
eb3full
VIP
Full Member
*
Offline Offline

Activity: 198
Merit: 101


View Profile
March 06, 2014, 07:33:22 PM
 #2

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

"With four parameters I can fit an elephant, and with five I can make him wiggle his trunk." John von Neumann
buy me beer: 1HG9cBBYME4HUVhfAqQvW9Vqwh3PLioHcU
apple_talk (OP)
Sr. Member
****
Offline Offline

Activity: 473
Merit: 250


"Proof-of-Asset Protocol"


View Profile
March 06, 2014, 07:39:12 PM
 #3

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?

|
 
 
50
|
 




                       ▄
           ▄▄▄▄▄▄███████
▄▄▄▄█████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████

█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
▀▀▀▀█████  █████████████
           ▀▀▀▀▀▀███████
                       ▀
|
 
 
$1,5 M
|



        ▄▄▄█████████▄▄▄
      ▄█████▀▀███▀▀█████▄
    ▄███▀     ███     ▀███▄
   ████       ███       ████
  ███▀                   ▀███
 ███▀                     ▀███
▄██▀       █████████       ▀██▄
███                         ███
███        █████████        ███
███                         ███
▀██▄       █████████       ▄██▀
 ███▄                     ▄███
  ███▄                   ▄███
   ████       ███       ████
    ▀███▄     ███     ▄███▀
      ▀█████▄▄███▄▄█████▀
        ▀▀▀█████████▀▀▀
|
 
|
 
<>
<>
<>
<>
 
GITHUB
TWITTER
YOUTUBE
FACEBOOK
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!