addProvenance function

Add a hash and associated information to enable checking object provenance.