Bitcoin Forum
May 08, 2024, 03:51:46 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Question to 0x20 Opcode and script for transaction in early blocks (2011/2012)  (Read 563 times)
cz3kit (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 251


View Profile
March 29, 2017, 05:32:03 PM
Merited by ABCbits (1)
 #1

Hey, I am having a question about the 0x20 opcode in early blocks. I am currently working on a blockchain parser and I found following output scripts. Here is how they look:
Code:
Script  (Txid)
206fe77e9457c40ca1e98af516c073898e600facd3a6b296d1b7a3be257e01289d   (c5b6be528c2ff4673bfd9ff4de3d09ae67306189d17530648dd9e6ad249ee8c7)
202ddf42e08eed1e23903da1f9017e417075603428267bac45fc01c28a3c894588  (34c218c9da7bdfebbbcb59b23dc761ffbefade525828f84a0ee7d836a21c7868)

This are just 2 but there are more. Blockchain.info marks them as Strange and it seems to me that they don't get the btc.
But why these script? What is their purpose?

Thanks for hints and information.

The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715183506
Hero Member
*
Offline Offline

Posts: 1715183506

View Profile Personal Message (Offline)

Ignore
1715183506
Reply with quote  #2

1715183506
Report to moderator
1715183506
Hero Member
*
Offline Offline

Posts: 1715183506

View Profile Personal Message (Offline)

Ignore
1715183506
Reply with quote  #2

1715183506
Report to moderator
1715183506
Hero Member
*
Offline Offline

Posts: 1715183506

View Profile Personal Message (Offline)

Ignore
1715183506
Reply with quote  #2

1715183506
Report to moderator
piotr_n
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
March 29, 2017, 07:14:40 PM
Merited by ABCbits (2)
 #2

Yes, these are scripts.

The "opcode" 0x20 is saying to push the next 32 bytes of the script into the stack.

https://en.bitcoin.it/wiki/Script#Constants

The purpose od using a "non-standard" scripts can be different - depends on a specific application.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
cz3kit (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 251


View Profile
March 29, 2017, 07:21:08 PM
 #3

But is it not clear why they had been used in that period of time?

I could not find any information about it and my guess was that someone had been testing scripts, but I found like 10 of them. That's the reason why I started to wonder what was happening there.

Hmm, I guess I will just take it as it is. If someone has an idea, please let me know Smiley I am curious.

piotr_n
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
March 29, 2017, 07:27:32 PM
Merited by ABCbits (1)
 #4

I can't say how it was used there at that time.

But you should know that there are (and have been) many undocumented blockchain applications out there.
It's simply impossible to know a purpose of every single script in the blockchain.

However these days such kind of scripts would rather start with 0x6a opcode - then followed by 0x20 and then by 32 bytes of the value, usually being a hash of some data.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
cz3kit (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 251


View Profile
March 29, 2017, 07:34:10 PM
 #5

Yea, I had been reading about this. It would start with 0x6a which is OP_RETURN followed by the hashed data.
Thank you. I guess I will see more strange things during the parsing process Cheesy

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!