storj/storagenode/piecestore
paul cannon 0d1dce508e
ensure uplink is sending correct size with PieceHash (#2555)
If we verify that the size matches reality, we can then expect to use
the filesystem to store the piece size as used in the signed PieceHash
from the uplink. Otherwise, the uplink might send a garbage size value,
leaving the storagenode with no good way to verify the uplink signature
on the piece at a later date.

Also fix the code in uplink/piecestore/ so that it sends a valid size,
because it was being rude and sending 0.
2019-07-15 11:26:18 -04:00
..
endpoint_test.go protocol: implement new piece signing and verification (#2525) 2019-07-11 16:51:40 -04:00
endpoint.go ensure uplink is sending correct size with PieceHash (#2555) 2019-07-15 11:26:18 -04:00
serials_test.go storagenodedb: use datetime functions in sqlite queries (#2512) 2019-07-10 10:47:59 -04:00
serials.go Add serial number type (#1508) 2019-03-18 15:08:24 +02:00
verification_test.go protocol: implement new piece signing and verification (#2525) 2019-07-11 16:51:40 -04:00
verification.go protocol: implement new piece signing and verification (#2525) 2019-07-11 16:51:40 -04:00