Open-Attestation / open-attestation

Meta framework for providing digital provenance and integrity to documents.
https://openattestation.com
Apache License 2.0
55 stars 19 forks source link

How do you validate a document? #214

Closed kaihendry closed 2 years ago

kaihendry commented 3 years ago

Sorry I'm confused by https://github.com/Open-Attestation/open-attestation#verify-signature-of-document

Note that this method does not check against the blockchain or any registry if this document has been published. The merkle root of this document need to be checked against a publicly accessible document store (can be a smart contract on the blockchain).

How does one perform the "need to be checked against a publicly accessible document store"?

cavacado commented 3 years ago

Hi, in order to perform the merkle root check, please use our sister library oa-verify.

In particular, the verifier needs to have the DOCUMENT_STATUS verifier. https://github.com/Open-Attestation/oa-verify#custom-verification