We have a situation where we generate the Base58 multihash of our content before we actually upload it to Infura, that is then also used in the EIP712 signature and ultimately put on the blockchain.
Is it possible to have a predetermined hash instead of Infura generating the hash each time a new file is uploaded ?
Hi @om26er - that’s not something that’s currently possible. Are you wanting to use a predetermined hash because you’re seeing discrepancies compared to what you expect, or for performance reasons?
I have figured out the issue that I was facing and hence this thread is “resolved”. I was trying to upload CBOR encoded bytes and was having the discrepancy where Infura was returning a different hash than the one I was calculating locally.
It seems I was using the wrong API endpoint (https://infura.io/docs/ipfs/post/add), instead I had to go with https://infura.io/docs/ipfs/post/dag-put