Instead of reinventing the wheel, prefer to use the check method from the object storage interface for verifying content presence and integrity.
Depends on !65 (merged) and swh-objstorage!178 (merged).
Related to #4694 (closed).