ethpm / py-ethpm

This library is deprecated. ethPM python tooling is now located in web3.py
MIT License
24 stars 13 forks source link

[WIP] Initial attempt to validate >256kb ipfs files #165

Open njgheorghita opened 5 years ago

njgheorghita commented 5 years ago

What was wrong?

Validating ipfs contents retrieved against their hash is broken for files > 256kb.

useful links:

Cute Animal Picture

njgheorghita commented 5 years ago

@pipermerriam I've been running down some rabbitholes to get >256kb ipfs file content-hash validation working. If you can take a quick :eyes: and see if anything jumps out to you? As far as I can tell, everything's in the right place, but the output hashes just won't match the expected value. I've manually decoded the individual root and leaf ipfs objects, and everything in my code corresponds to the output. i.e.