Blockchain certificate checker

First, all of our Mantle Labs top-level applications are made by our newcomers in the dev team to play with the technology and also prove how easy it can be to work with blockchain technology when you have access to Mantle tech. The biggest challenge when developing a top-level app is not the Mantle interaction but just how you want your application.

Before we begin, this application is open source in our Mantle Labs, so feel free to use it and even improve it. Everything is in Reference at this end of the page.

What can I do with it?

So, you have access to Mantle Keeper, what can you do with it?

The following example is a simple application you can put on the top of it, let's do a blockchain certificate checker!

When a new certificate is emitted by the university, they need to add the document on the blockchain by simply do this call (see this page more details):

curl -X POST \
  http://api.mantleblockchain.com/keeper/{{PRODUCT_ID}}/files \
  -H 'Accept: text/plain, application/json, text/json' \
  -H 'Content-Type: multipart/form-data' \
  -H 'x-api-key: {{API_KEY}}' \
  -F 'folderId={{FOLDER_ID}}' \
  -F 'accuracy={{ACCURACY}}' \
  -F 'file={{FILE}}' \
  -F 'displayName={{DISPLAY_NAME}}'

When a file is added on the blockchain, it can now be compared with similar files. In this case, we compare the information entered by the user by creating a similar format file and comparing it with the one on the blockchain. This call will create a diff between these two files (see this page for more details):

curl -X POST \
  http://api.mantleblockchain.com/keeper/{{PRODUCT_ID}}/files/{{FILE_ID}}/compare/latest \
  -H 'Accept: text/plain, application/json, text/json' \
  -H 'Content-Type: multipart/form-data' \
  -H 'x-api-key: {{API_KEY}}' \
  -F 'file={{FILE_TO_COMPARE}}' \
  -F 'generateDiffFile={{GENERATE_DIFF_FILE}}'

Here is what our application can look like by using these simple 2 calls:

References

https://github.com/mantle-labs/blockchain-certificates
https://docs.mantleblockchain.com/docs/keeper-concepts