Socket
Book a DemoInstallSign in
Socket

chainpoint-client-web

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chainpoint-client-web

Embeddable Components for Creating and Verifying Proofs on the Chainpoint Network

0.0.4-1
latest
Source
npmnpm
Version published
Weekly downloads
3
-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

chainpoint-client-web

About

This library provides react components for creating and verifying Chainpoint proofs using the Tierion Network.

Overview

There are two ways to embed the UI components into the site.

NPM

npm i --save chainpoint-client-web

YARN

yarn add chainpoint-client-web

HTML tag

chainpoint-client-web provides two files for use in html pages:

  • node_modules/chainpoint-client-web/dist/bundle.js
  • node_modules/chainpoint-client-web/dist/bundle.css

Steps:

  • Create script and link tag for bundled css and js files.

  • Add a container with id proof-app-client.

Chainpoint web client will render application directly in this container.

<html>
    <head>
        <link rel="stylesheet" href="./node_modules/chainpoint-client-web/dist/bundle.css" />
    </head>
    <body>

        <div
            id="proof-app-client"
            data-onAppearCreate="onAppearCreate"
            data-onAppearVerify="onAppearVerify"
            data-onChangeProofCount="onChangeProofCount"
            data-onChangeCreateStatus="onChangeCreateStatus"
            data-onChangeVerifyFailStatus="onChangeVerifyFailStatus"
            data-onChangeVerifySuccessStatus="onChangeVerifySuccessStatus"
            data-onChangeVerifyAnalysisStatus="onChangeVerifyAnalysisStatus"
        ></div>

        <script type="text/javascript">
            function onAppearCreate() {
                console.log('onAppearCreate');
            }
            function onAppearVerify() {
                console.log('onAppearVerify');
            }
            function onChangeProofCount() {
                console.log('onChangeProofCount');
            }
            function onChangeCreateStatus() {
                console.log('onChangeCreateStatus');
            }
            function onChangeVerifyFailStatus() {
                console.log('onChangeVerifyFailStatus');
            }
            function onChangeVerifySuccessStatus() {
                console.log('onChangeVerifySuccessStatus');
            }
            function onChangeVerifyAnalysisStatus() {
                console.log('onChangeVerifyAnalysisStatus');
            }
        </script>
        <script type="text/javascript" src="./node_modules/chainpoint-client-web/dist/bundle.js"></script>
    </body>
</html>

Attrs

  • data-onAppearCreate
  • data-onAppearVerify
  • data-onChangeProofCount
  • data-onChangeCreateStatus
  • data-onChangeVerifyFailStatus
  • data-onChangeVerifySuccessStatus
  • data-onChangeVerifyAnalysisStatus

React Components

chainpoint-client-web provides set of react components for use in react application:

  • node_modules/chainpoint-client-web/dist/react
import ProofClient from 'chainpoint-client-web/dist/react/index.js'
import 'chainpoint-client-web/dist/react/index.css'

export default props => (
  <ProofClient
    onAppearCreate={() => {}}
    onAppearVerify={() => {}}
    onChangeProofCount={() => {}}
    onChangeCreateStatus={() => {}}
    onChangeVerifyAnalysisStatus={() => {}}
    onChangeVerifySuccessStatus={() => {}}
    onChangeVerifyFailStatus={() => {}}
  />
)

Props:

  • onAppearCreate
  • onAppearVerify
  • onChangeProofCount
  • onChangeCreateStatus
  • onChangeVerifyFailStatus
  • onChangeVerifySuccessStatus
  • onChangeVerifyAnalysisStatus

FAQs

Package last updated on 05 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.