Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Repository files navigation

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

importbindedVerifyfrom'@binded/verify-proof'importfsfrom'fs'constproofData=JSON.parse(fs.readFileSync('./some-binded-proof.json',{encoding: 'utf-8',}))constproof=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.

About

Verify Binded proofs

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages