react-blockcerts
v0.9.5
Published
React component to display and verify a BlockCerts certificate.
Downloads
18
Readme
React Blockcerts
Introduction
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
Demo
https://guix77.github.io/react-blockcerts
How to use
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"
/>
)
}
Props
- src (string or object): url of the certificate JSON, or certificate JSON
Author
Guillaume Duveau, blockchain and web developer. See my pages about Blockcerts
Sponsors
Development
Publish NPM package:
yarn publish
Publish demo:
yarn publish-demo