Finding code in blk*.dat files

2 replies 454 views
omega2009Member
Posts: 27 · Reputation: 127
#1Oct 13, 2019, 06:05 AM
So, I was using the "strings" command in Linux and stumbled upon some code in the blockchain. It mentioned Satoshi Nakamoto as the author, but then Claude AI said it was actually Peter Todd. Apparently, Claude AI pieced together the code. I’m posting two files below. Honestly, I don’t think they’re super useful, but I thought sharing them might spark some discussion. ### The script I used was: I wouldn’t be surprised if there are other programs or maybe even some Python scripts hidden in the blockchain.
3 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#2Oct 13, 2019, 09:55 AM
Depending on what you count as program/script, there are plenty of such thing due to Ordinal. https://ordiscan.com/inscriptions?types=html shows list of HTML based ordinal content. Most of them only load/draw image, but there are few actual app like this one https://ordiscan.com/inscription/126321716. And knowing your capability, you probably want to play with https://dune.com/queries/2013645/3334054 to estimate total program/script pushed on blokchain with Ordinal.
0 Reply Quote Share
paul.ninjaFull Member
Posts: 152 · Reputation: 539
#3Oct 13, 2019, 02:40 PM
If you can map the string offset back to a block, then to a txid, then inspect the raw tx and script/witness, you have something worth poking. Otherwise, strings can also stitch together misleading little freak fragments from binary data, especially when you start piping it through filters. Old Unix tools are wonderful, but they are also very happy to lie to you with a straight face if you ask a vague question. So yes, there may be more programs in the chain, especially post-Ordinals. Before that too, just less fashionable and less convenient. But I would treat this as blockchain archaeology, not source-code recovery. First recover provenance, then argue meaning. Otherwise we're just reading tea leaves from blk000xx.dat, and those leaves have been stepped on by every jpeg and inscription expert.
3 Reply Quote Share
?Reply
Sign in to reply to this topic

Related topics