In this guide, we will attempt to issue an driving license in the OpenAttestation Version 3 format. We will be using the document store to issue this document with
DNS-TXT as the method to identify the issuer using DNS.
The document will not be rendered yet as we have yet to create demo renderer
For a full range of documents (beside document store + DNS-TXT), you may look at the different types of document supported here
Document Store Setup
If you have not already deployed a document store, you may do so by following the guides listed below:
Creating Raw Document
We will now create the data for the driving license. Create a file
licence.json with the following data:
You will need to replace the following values:
Replace this with the address of the document store deployed in the step Deploying Document Store
Replace this with the domain where the TXT record has been inserted in the step Configuring DNS
Wrapping the Document
licence.json saved, run the following command after the CLI is installed:
The will wrap the original document and append additional data required by OpenAttestation to the
proof key at the root of the document.
Take note of the value
proof.merkleRoot. This is the merkle root to be issued on the document store later.
With the merkle root in
proof.merkleRoot, you may following the Issuing Document guide to issued the document on Ethereum.
TBD (after oa-cli is updated for
If you are reading this now, you may programmatically verify the document with