Bitcoin Forum
May 22, 2019, 10:23:50 AM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is emtpy ScriptPubKey nonstandard or illegal?  (Read 84 times)
Coding Enthusiast
Hero Member
*****
Offline Offline

Activity: 623
Merit: 849


Novice C♯ Coder


View Profile WWW
March 23, 2019, 06:29:47 AM
Merited by ETFbitcoin (1)
 #1

If illegal, since when?

(If any readers are curious, here is an example: 8ec3e3dd39150798d71c61ffb7cc18ade6f2a2958378e18b7a98eefb709e7322 spent by f21b099d67070a7639d384f30e9b139bab58c27e47368a2d8152f05c14e187b7 which is the smallest tx record)

Projects List+Suggestion box
Donation link using BIP21
Bech32 Donation link!
BitcoinTransactionTool (0.9.2):  Ann - Source Code
Watch Only Bitcoin Wallet (supporting SegWit) (3.1.0):  Ann - Source Code
SharpPusher (broadcast transactions) (0.10.0): Ann - Source Code

1558520630
Hero Member
*
Offline Offline

Posts: 1558520630

View Profile Personal Message (Offline)

Ignore
1558520630
Reply with quote  #2

1558520630
Report to moderator
1558520630
Hero Member
*
Offline Offline

Posts: 1558520630

View Profile Personal Message (Offline)

Ignore
1558520630
Reply with quote  #2

1558520630
Report to moderator
1558520630
Hero Member
*
Offline Offline

Posts: 1558520630

View Profile Personal Message (Offline)

Ignore
1558520630
Reply with quote  #2

1558520630
Report to moderator
Crypto Casino Since 2014
Level Up & Get Even More Rewards!
Daily Treasure Chest
& Much More
Roll Hunt
Rakeback
Blackjack
Jackpot
Dice
Slots
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Pmalek
Hero Member
*****
Offline Offline

Activity: 952
Merit: 1031



View Profile
March 23, 2019, 08:27:03 AM
 #2

I am not sure if this will help you any further but give it a try.
Have a look at this work by Peter Todd, RFC: empty scriptPubKeys and OP_RETURN for marking unspendable txouts
https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2013-February/002159.html

I also found an older thread from 2015.
https://bitcointalk.org/index.php?topic=1038794.msg11208171#msg11208171


.FORTUNE.JACK.
      ▄▄███████▄▄
   ▄████▀▀ ▄ ██████▄
  ████ ▄▄███ ████████
 █████▌▐███▌ ▀▄ ▀█████
███████▄██▀▀▀▀▄████████
█████▀▄▄▄▄█████████████
████▄▄▄▄ █████████████
 ██████▌ ███▀████████
  ███████▄▀▄████████
   ▀█████▀▀███████▀
      ▀▀██████▀▀
         
         █
...FortuneJack.com                                             
...THE BIGGEST BITCOIN GAMBLING SITE
       ▄▄█████████▄▄
    ▄█████████████████▄
  ▄█████████████████████▄
 ▄██
█████████▀███████████▄
██████████▀   ▀██████████
█████████▀       ▀█████████
████████           ████████
████████▄   ▄ ▄   ▄████████
██████████▀   ▀██████████
 ▀██
█████████████████████▀
  ▀██
███████████████████▀
    ▀█████████████████▀
       ▀▀█████████▀▀
#JACKMATE
WIN 1 BTC
▄█████████████████████████▄
███████████████████████████
███████████████████████████
██████████▀█████▀██████████
███████▀░░▀░░░░░▀░░▀███████
██████▌░░░░░░░░░░░░░▐██████
██████░░░░██░░░██░░░░██████
█████▌░░░░▀▀░░░▀▀░░░░▐█████
██████▄░░▄▄▄░░░▄▄▄░░▄██████
████████▄▄███████▄▄████████

███████████████████████████
███████████████████████████
▀█████████████████████████▀
darosior
Full Member
***
Offline Offline

Activity: 170
Merit: 177



View Profile WWW
March 23, 2019, 02:14:22 PM
 #3

If illegal, since when?

(If any readers are curious, here is an example: 8ec3e3dd39150798d71c61ffb7cc18ade6f2a2958378e18b7a98eefb709e7322 spent by f21b099d67070a7639d384f30e9b139bab58c27e47368a2d8152f05c14e187b7 which is the smallest tx record)
A script has to be standard or the transaction won't be accepted, this check is done with the isStandard() boolean function which will return false if the Solver function returns `TX_NONSTANDARD`.
The `Solver()` function will return `TX_NONSTANDARD` if the script is not P2SH, or valid WITNESS, or OP_RETURN, or P2PK, or P2PKH. None of them can be empty, thus a transaction with an output containing an empty scriptPubkey will be non standard and thus not accepted (/illegal).

EDIT : To answer the question in the title, "nonstandard or illegal ?", this is the same : only standard scripts are legal.

Github profile ~ Crypto Lyon (french community)  ~ GPG key fingerprint : E13F C145 CD3F 430 ~ LN public key : 03678b4f041fbfbeebcafc076469df75decf81da20a53bd490172e83ce532df1fa
Tutorials/posts : Address from private keyBitcoin smart contracts ~ Setup a Bitcoin node ~ Raw P2PKH transaction in Python ~ P2SH ~ 51% attack
Coding Enthusiast
Hero Member
*****
Offline Offline

Activity: 623
Merit: 849


Novice C♯ Coder


View Profile WWW
March 23, 2019, 03:43:26 PM
Merited by Foxpup (2)
 #4

EDIT : To answer the question in the title, "nonstandard or illegal ?", this is the same : only standard scripts are legal.

Maybe the term "illegal" was an ambiguous term, my English was not helping me find a better word!
By "illegal" I mea whether the transaction containing an empty script would be invalid in a block. As you can see from the transaction I posted in OP it was perfectly possible in 2015 to have such transactions, I want to know if anything has changed.

BTW nonstandard means bitcoin-core nodes automatically reject these transactions and won't relay them. They are not breaking any rules though which is why they can exist in blocks.

Projects List+Suggestion box
Donation link using BIP21
Bech32 Donation link!
BitcoinTransactionTool (0.9.2):  Ann - Source Code
Watch Only Bitcoin Wallet (supporting SegWit) (3.1.0):  Ann - Source Code
SharpPusher (broadcast transactions) (0.10.0): Ann - Source Code

achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 1778
Merit: 2379


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


View Profile WWW
March 23, 2019, 04:38:45 PM
Merited by Foxpup (3), bones261 (2), ETFbitcoin (1), Coding Enthusiast (1)
 #5

It is non-standard but still valid. No consensus changes have been made regarding empty scriptPubKeys.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!