I scanned the Bitcoin blockchain for pictures. What I discovered will shock you. A lot has been stated on-line concerning the arbitrary knowledge and content material that resides on the Bitcoin blockchain. This risk has not solely spawned a distinct segment artwork scene, but in addition led to a motion in opposition to “non-monetary transactions” on the Bitcoin community. If you happen to take heed to blockchain proponents or opponents, you'll suppose that blockchain is mainly a wall lined in graffiti.
Effectively, I made a decision to check the query. Do pictures really exist on the blockchain? And what does this really imply for Bitcoiners who’re merely seeking to maximize their monetary sovereignty by working their very own full nodes?
My methodology was easy. I bought a brand new arduous drive to retailer the blockchain with the intention of working basic picture restoration software program on it. I selected PhotoRec to do my picture restoration work. PhotoRec is an open supply picture restoration program that has been round for over 20 years. This software program is designed to seek for picture information inside uncooked knowledge. It may be used to recuperate pictures and different file codecs from failed or corrupted arduous drives. The truth is, it was typically used to recuperate misplaced pockets.dat information within the early days of Bitcoin wallets, earlier than the seedword format turned fashionable.
Synchronize your entire Bitcoin node
To retailer your entire Bitcoin blockchain, I made a decision to purchase a 4 terabyte disk drive for a number of hundred {dollars}. Subsequent, I put in the most recent model of Bitcoin Core and began syncing the chain. This course of concerned downloading and verifying the accounting integrity of each transaction in Bitcoin historical past and took roughly 72 hours or three days, because it was automated by Bitcoin Core software program and ran within the background.
I've completed this on different highly effective gaming consoles. The principle bottleneck when it comes to time is the disk drive, which slows down the studying and writing of information as wanted when synchronizing the Bitcoin blockchain. The sluggish a part of the method includes unused transaction output units (UTXOs). When a person synchronizes the blockchain, all unused transaction values (outputs) or optimistic balances are organized right into a UTXO set, and when these values are used, they’re faraway from the set, whereas new addresses to which these SATOSHI had been despatched are added.
On disk drives, this UTXO indexing course of might take as much as three weeks by some estimates. So, to hurry issues up, my pimp (the AI agent) advised that I as a substitute index the information in RAM after which transfer that knowledge again to the 4 terabyte disk drive. Your entire course of took three days when working within the background, however an SSD can full your entire activity in a couple of day. SSD drives are a lot quicker than disk drives. They’re extra trendy, but in addition effectively over 4 instances the value.
As soon as the blockchain was totally downloaded and verified, I moved the UTXO index from RAM again to disk and began the Bitcoin software program. The chain is totally synced and your pockets is prepared. The subsequent step is to revive the photographs saved on the blockchain.
Picture restoration on blockchain utilizing PhotoRec
With the total Bitcoin blockchain saved on a disk drive, I turned off Bitcoin Core and requested Ponkotsu (Cursor AI agent) to run PhotoRec 7.2 on the drive. The default PhotoRec course of searches for jpg, png, gif, tif, bmp, ico, psd, and uncooked codecs. This course of ran for over 11 hours on the blockchain knowledge, however finally…(drum roll)…nothing was discovered.
After scanning over a terabyte of blockchain knowledge and half a day, no pictures had been discovered. PhotoRec's wiki web page gives a easy instance of how the software program works. “PhotoRec identifies a JPEG file if the block begins with 0xff, 0xd8, 0xff, 0xe0, 0xff, 0xd8, 0xff, 0xe1, or 0xff, 0xd8, 0xff, 0xfe.” In different phrases, this system examines the information on disk for bytes that point out there’s a picture file.
This program might have false positives. As proven within the picture under, I’ve 8 ICOs and 4 similar PNG information saved, however once I open them, I don't see any pictures. Due to this fact, nearly no significant pictures of any sort had been discovered.

The place did JPEG go? XOR magic trick
How is that this attainable? For years, crypto folks have been speaking about NFTs and the right way to engrave picture knowledge onto the Bitcoin blockchain. Tens of millions of {dollars} are being made on this area of interest, and full tradition wars are being fought over this challenge as we communicate. Is it attainable that there actually is not any picture on the chain?
The dangers related to arbitrary knowledge had been discovered to have been lengthy mentioned and deliberate for in Bitcoin core growth circles as early as 2011. XOR, a easy knowledge obfuscation method, is used to scramble all blockchain knowledge saved on arduous drives.

You will have heard that the essential language of computer systems is made up of 0s and 1s. Merely put, XOR compares two numbers or bits and returns 1 if the bits are completely different and 0 if the bits are the identical. Within the case of Bitcoin, XOR compares each little bit of blockchain knowledge to a random key generated throughout preliminary set up. The result’s saved knowledge that different applications can not discover which means in. However when Bitcoin software program runs, it has the important thing to unscramble that knowledge and use it at will. XOR can be very quick, so it doesn't have a huge impact on efficiency. Under are examples of Bitcoin producing blocks earlier than and after XOR.

At the moment, XOR applies to each blockchain knowledge and UTXO units. XOR was first mentioned in 2014, when antivirus software program began stumbling on blockchain knowledge that it interpreted as virus code. The antivirus software program then quarantines the blocks, corrupting the blockchain knowledge and crashing Bitcoin, making synchronization inconceivable. By the top of 2015, XOR was carried out on UTXO set knowledge at relaxation, and by 2024 on all blockchain knowledge at relaxation.
By the best way, the XOR course of implies that no knowledge could be recognized or extracted from the blockchain with out deliberately circumventing XOR, and isn’t needed for Bitcoin for use as a foreign money. The Bitcoin Core software program maintains a easy database of the placement of every scrambled block, making it straightforward to retrieve that knowledge, unscramble it, and use it in a focused method.
Syncing Bitcoin in an unscrambled method is a customized course of that takes simply so long as syncing from scratch, because it basically requires rewriting total terabytes of information in a brand new order, making it much less significant for individuals who simply need the same old privateness and safety advantages of working a Bitcoin node. Due to this fact, with regards to the overwhelming majority of copies of Bitcoin blockchain knowledge that reside on the computer systems of normal Bitcoiners world wide, there’s nearly no identifiable knowledge or imagery of any sort. Stunning, I do know. Be at liberty to run PhotoRec checks by yourself nodes.
On this publish, we scanned your entire Bitcoin blockchain to acquire pictures. What I Discovered Will Shock You first appeared in Bitcoin Journal and was written by Juan Galt.

