TeachMeBitcoin

The Forensic Audit of the DB: Using `gettxoutsetinfo` to verify the supply

From TeachMeBitcoin, the free encyclopedia Reading time: 1 min

The Forensic Audit of the DB: Using gettxoutsetinfo to verify the supply

How do you prove that only 21,000,000 coins exist? You use Forensic Auditing. In src/node/coinstats.cpp, the node provides the gettxoutsetinfo RPC. This is the "Supreme Audit" of the machine.

1. The Rolling Hash (MuHash)

To audit the supply, the node must read every single unspent coin in the LevelDB.

2. The Mathematical Proof

The resulting hash is a "Digital Fingerprint" of the entire world's wealth.


☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!