Bitcoin Forum
May 29, 2024, 07:03:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Are old-style transactions still accepted?  (Read 559 times)
Cryddit (OP)
Legendary
*
Offline Offline

Activity: 924
Merit: 1129


View Profile
April 14, 2015, 05:30:11 PM
 #1


Transactions made with current clients have outputs like

OP_DUP OP_HASH160 <pubkey hash> OP_EQUALVERIFY OP_CHECKSIG

where transactions made in the early blocks of the block chain have outputs like

<uncompressed-public-key> OP_CHECKSIG

And under the hood, these are treated the same way.  This is simply pushed onto the script interpreter stack when it's spent and then the spend script operates on the stack.

And the same spend script - namely

<signature> <pubkey>

works to spend either kind of output. 

Is there any problem with a transaction containing an old-style txOut if it were made today?  Would it be considered non-standard and not relayed? 
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1097


View Profile
April 14, 2015, 05:46:41 PM
 #2


Transactions made with current clients have outputs like

OP_DUP OP_HASH160 <pubkey hash> OP_EQUALVERIFY OP_CHECKSIG

where transactions made in the early blocks of the block chain have outputs like

<uncompressed-public-key> OP_CHECKSIG

And under the hood, these are treated the same way.  This is simply pushed onto the script interpreter stack when it's spent and then the spend script operates on the stack.

And the same spend script - namely

<signature> <pubkey>

works to spend either kind of output. 

Is there any problem with a transaction containing an old-style txOut if it were made today?  Would it be considered non-standard and not relayed? 

"<uncompressed-public-key> OP_CHECKSIG" is spent by "<signature>", not "<signature> <pubkey>"

anyway, it's still standard.

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
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!