NebulousLabs/Sia — pull request #207 by lukechampine (2014-08-28 02:50:39+00:00)
Title: proof-of-storage changes

The `StorageProof` struct is now more widely used in proofofstorage.go. It has been modified slightly to use a slice of pointers, since `foldHashes()` depends upon `HashStack` containing nil "dummy" hashes. This also means that the task of calculating the "base" hash has been offloaded to `foldHashes()`.

More importantly, the expected hash used in `VerifyStorageProof` is now taken from `Wallet.SectorSettings.HashSet[sibling]` instead of being read from a file. This cleans things up quite a bit (this PR is net negative).