How it works
Solidity embeds DAG-CBOR metadata (compiler version, IPFS/Swarm hash of sources) in contract bytecode.
The *.getcode.eth resolver uses ENS wildcard to extract this data and return the IPFS CID or Swarm hash as an ENS contenthash.