Compare a document or hash against registered records to confirm integrity and alignment with the ledger.