APIHash verification store

Hash verification store

Verifies the hash of each retrieved object. Hash verification should be used consideredly.

Instance creation

HashVerificationStore hashVerificationStore = new HashVerificationStore(store);
var hashVerificationStore = new cds.HashVerificationStore(store);
my $hashVerificationStore = CDS::HashVerificationStore->new($store);

Wraps a hash verification store around another store.

Store behavior

All store request are passed as-is to the wrapped store.

The objects retrieved through a get request are (asynchronously) checked against the expected SHA256 hash. If wrong, the request fails with a "Hash mismatch." error.