Abstract
A method for computing, entirely within an EVM-compatible smart contract, the IPFS content identifier (CID) that corresponds to data already stored on-chain in a content-addressed form. The method reconstructs canonical IPFS UnixFS / dag-pb DAG structures from on-chain bytes under a fixed import profile and derives a CIDv1 that is byte-identical to what an off-chain IPFS implementation would compute for the same content under the same profile — without any off-chain computation, oracle, or trusted party.
Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 License.
Recommended Citation
Ohlsen, Ryley; Gilbert, Lindsay; and Etre, Mathew, "On-Chain Reconstruction of IPFS Content Identifiers from EVM-Resident Content-Addressed Data", Technical Disclosure Commons, (August 26, 2026)
https://www.tdcommons.org/dpubs_series/11507