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

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.

Share

COinS