Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@binded/verify-proof

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@binded/verify-proof

Verify Binded blockchain proofs

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
3
Weekly downloads
 
Created
Source

verify-proof

Build Status

This is a client side library and web UI for verifying Binded issued proofs.

Proofs are composed of a merkle branch, original data and a root hash which is written on the Bitcoin blockchain, effectively timestamping the data.

The proof format is based on chainpoint proof format.

Verify a Binded proof

Install

npm install --save @binded/verify-proof

Usage

import bindedVerify from '@binded/verify-proof'
import fs from 'fs'

const proofData = JSON.parse(fs.readFileSync('./some-binded-proof.json', {
  encoding: 'utf-8',
}))

const proof = bindedVerify(proofData)

proof.analyze().then((results) => {
  console.log(results)
  /*
    {
      // optional info for nicer error messages in case
      // isValid is false
      validations: {
        isTargetHashValid: true,
        isMerkleRootValid: true,
        isDataHashValid: true,
        isTxValid: true,
      },
      confirmations: 4097,
      isValid: true, // true if valid and false if invalid
    }
  */
})

TODO: cli installed with npm install -g @binded/verify-proof

NB: Binded was formerly known as Blockai.

Keywords

FAQs

Package last updated on 13 Sep 2017

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc