Hi there!
I have written some code to fetch and verify the content from an IPFS gateway by hashing the content and comparing it to the original CID hash. Check it out https://github.com/dappnode/DNP_DAPPMANAGER/blob/master/packages/dappmanager/src/modules/ipfs/getContentFromGateway.ts
I am not sure if this verification is already done by the IPFS-CAR library, can anybody clarify it?
Also, I was trying to create a “fake” ipfs gateway to expose the /dag/export
endpoint and serve a modified CAR content to check that my code works propertly. I am having troubles how to serve CAR content through an API, can anyone help me please?
Thank u in advanced!