Bitproof Module for Node.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
config.js
index.js
package.json

README.md

Bitproof for Node.js

Installation

You can install Bitproof with npm:

$ npm install bitproof

Certify

// dependencies
var Bitproof = require('bitproof');

// Find your API credentials in your Bitproof Dashboard
var notary = new Bitproof(YOUR_API_KEY, YOUR_SECRET_KEY);

// push some hex in the blockchain
notary.push(HEX_UP_TO_40_BYTES, function(result) {
    console.log(result);
}, function(err) {
    console.log(err);
});

Read a proof

// dependencies
var Bitproof = require('bitproof');

// no API keys are needed for read only
var notary = new Bitproof();

// read some hex in the blockchain
var transactionId = 'e65a501b8caab14cea934e5aff06a82110ed152cc6c6d62a5b5146dc9dc21dae';
notary.read(transactionId, function(result) {
    console.log(result);
}, function(err) {
    console.log(err);
});

Applications using Bitproof for Node.js