Bitcoin Forum
May 04, 2024, 03:14:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Non-standard transactions in the block chain  (Read 1219 times)
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


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
1714835658
Hero Member
*
Offline Offline

Posts: 1714835658

View Profile Personal Message (Offline)

Ignore
1714835658
Reply with quote  #2

1714835658
Report to moderator
1714835658
Hero Member
*
Offline Offline

Posts: 1714835658

View Profile Personal Message (Offline)

Ignore
1714835658
Reply with quote  #2

1714835658
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714835658
Hero Member
*
Offline Offline

Posts: 1714835658

View Profile Personal Message (Offline)

Ignore
1714835658
Reply with quote  #2

1714835658
Report to moderator
1714835658
Hero Member
*
Offline Offline

Posts: 1714835658

View Profile Personal Message (Offline)

Ignore
1714835658
Reply with quote  #2

1714835658
Report to moderator
1714835658
Hero Member
*
Offline Offline

Posts: 1714835658

View Profile Personal Message (Offline)

Ignore
1714835658
Reply with quote  #2

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

Activity: 372
Merit: 101


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
*
Offline Offline

Activity: 5194
Merit: 12972


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 (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


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
Merit: 1129


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

See the "strange transactions" list on blockexplorer.com

genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


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
Merit: 1129


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 (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


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:  

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