Skip to main content

StorageVerifyRequestDeep

Type Alias StorageVerifyRequestDeep 

Source
pub type StorageVerifyRequestDeep = bool;
Expand description

Also re-read and re-hash the bytes.

Absent or false is the structural check: ask the index and the store whether the bytes are there. true additionally re-hashes them, which is the only way to catch silent corruption — stored is a question about the filesystem, and a corrupt blob is still stored.

Rate-limited per account, because a deep scan reads and hashes every declared blob and an unbounded one is an I/O-amplification attack costing the caller one small JSON body. Past the budget the structural verdict still comes back and each blob’s deep reads rate_limited: throwing away a good structural answer because the optional half was throttled would make the limiter cost more than it saves.