checkProvenance function

Check the hash of an object to confirm its provenance.