SiaFoundation / core

Core packages for the Sia project
MIT License
51 stars 7 forks source link

Fix v2 storage proofs #159

Closed lukechampine closed 2 months ago

lukechampine commented 2 months ago

This went undetected because we haven't properly tested v2 storage proofs. Notably, we had a TestStorageProofRoot test, but it was basically just a regression test -- it compared the output to whatever storageProofRoot returned the first time we ran the test, so it didn't detect the faulty logic.