dignifiedquire / randor

Big Bad Tests for IPFS
2 stars 0 forks source link

better add verification #18

Closed whyrusleeping closed 8 years ago

whyrusleeping commented 8 years ago

add should hash content separately as its being sent to ipfs, and then later on the validation step, check the output of cat against that hash. (not an ipfs hash, but some external thing)

dignifiedquire commented 8 years ago

This already happens here: https://github.com/dignifiedquire/randor/blob/master/lib/operations/add.js#L34

whyrusleeping commented 8 years ago

Missed that, thanks!