July 23, 2020: This project is not maintained any more for now. There is the new Auther project, a complete Blockcerts v2 opensource solution https://github.com/AutherOrg
This component for React allows to view and verify certificates compliant with the Blockcerts standard.
This is not the official Blockcerts.org viewer, but it implements the same verification process and uses some of its code (cert-verifier-js).
For official information about Blockcerts, please check https://www.blockcerts.org/about.html
https://guix77.github.io/react-blockcerts
yarn add react-blockcerts
Then in your React app:
import React from 'react'
import Blockcerts from 'react-blockcerts'
const App = () => {
return (
<Blockcerts
src="https://raw.githubusercontent.com/blockchain-certificates/cert-verifier-js/master/tests/data/sample-cert-mainnet-valid-2.0.json"
/>
)
}
- src (string or object): url of the certificate JSON, or certificate JSON
Guillaume Duveau, blockchain and web developer. See my pages about Blockcerts
Publish NPM package:
yarn publish
Publish demo:
yarn publish-demo