Skip to main content

Feedback

Loading...

Signing Documents (CLI)

For the current step, you can either opt to use the CLI or Code.

After wrapping the documents and obtaining a merkle root, the documents are ready to be signed. Each documents will be signed individually, and the proof of the signature will be appended into the signed documents.

Signing the documents

tradetrust sign ./wrapped-documents --od ./signed-documents --public-key did:ethr:0xaCc51f664D647C9928196c4e33D46fd98FDaA91D#controller --key 0x7b227ac59116f3eeb2b265422cf3cbfbd244c525961fb297eb52153ec62aa845

In the example above:

✔  success   Signed documents saved to ./signed-documents

Verifying the documents

Head over to dev.tradetrust.io, drag and drop in one of the signed documents. The document will be verified, then displayed like in the image below.

Successful verification

🎉 Congratulations, you have completed the getting started guide to create your own Verifiable Document!

Additional information: Revocation of Verifiable Documents

Revoking of Verifiable Documents