Bitcoin Forum
December 11, 2016, 10:18:11 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Non-standard transactions in the block chain  (Read 1044 times)
genjix
Legendary
*
expert
Offline Offline

Activity: 1232


View Profile
July 09, 2011, 07:33:44 AM
 #1

Hi,

I noticed that BitcoinJ doesn't verify non standard transactions. Are there any non standard transactions in the current block chain?

When I say standard transactions, I mean only

[sig] [pubkey] OP_DUP OP_HASH160 <pubkeyhash> OP_EQUALVERIFY OP_CHECKSIG

And,

[sig] [pubkey] OP_CHECKSIG

Thanks
1481451491
Hero Member
*
Offline Offline

Posts: 1481451491

View Profile Personal Message (Offline)

Ignore
1481451491
Reply with quote  #2

1481451491
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481451491
Hero Member
*
Offline Offline

Posts: 1481451491

View Profile Personal Message (Offline)

Ignore
1481451491
Reply with quote  #2

1481451491
Report to moderator
hashcoin
Full Member
***
Offline Offline

Activity: 122


View Profile
July 09, 2011, 07:42:12 AM
 #2

Does bitcoinj verify any transactions?

http://code.google.com/p/bitcoinj/source/browse/trunk/src/com/google/bitcoin/core/Script.java

opCheckSig just returns true...
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2506


View Profile
July 09, 2011, 07:42:49 AM
 #3

There are. BitcoinJ only does SPV, though, so it doesn't need to verify everything.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
genjix
Legendary
*
expert
Offline Offline

Activity: 1232


View Profile
July 10, 2011, 02:48:06 AM
 #4

Are we talking about a huge list here or just a select few?

If not, would someone link a random selection of them?

Anything that uses more than:

OP_PUSHDATA1
OP_PUSHDATA2
OP_PUSHDATA4
OP_DUP
OP_DROP
OP_HASH160
OP_EQUALVERIFY
OP_CHECKSIG
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526


View Profile
July 10, 2011, 01:19:04 PM
 #5

See the "strange transactions" list on blockexplorer.com

genjix
Legendary
*
expert
Offline Offline

Activity: 1232


View Profile
July 10, 2011, 02:21:19 PM
 #6

Hhahaha! That's why IsStandard exists Smiley

Are those 3 the only non-standard transactions? They're very old it seems.

Thanks for that.

EDIT: How did that transaction not fail? OP_CHECKSIG pops twice from the stack and after the first pass, the stack would be 0 and then fail.
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526


View Profile
July 10, 2011, 02:24:00 PM
 #7

There are more on the testnet. Also depending on how you define "standard" there's a tx somewhere that has lots of zero value outputs that steganographically encodes the Bitcoin logo. It passes the IsStandard checks but is not financial in nature.
genjix
Legendary
*
expert
Offline Offline

Activity: 1232


View Profile
July 10, 2011, 02:49:07 PM
 #8

That's fine. As long as they don't use more than:

OP_PUSHDATA1
OP_PUSHDATA2
OP_PUSHDATA4
OP_DUP
OP_DROP
OP_HASH160
OP_EQUALVERIFY
OP_CHECKSIG

(for the time being at least Grin)
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!