Node.JS implementation of Zero-Knowledge Contingent Payment
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
LICENSE
README.md
example.js
package.json
preimagebitcoin.js

README.md

preimage-bitcoin-lib

##Node.JS implementation of Zero-Knowledge Contingent Payment

This library contains the code necessary to create a scriptPubKey as described in The first successful Zero-Knowledge Contingent Payment.

See an example in example.js. Use as a module by requiring preimagebitcoin.js.

TODO

  • Add method to generate the spend scriptSig.
  • Add method to build the buyer transaction.
  • Add method to build the seller final transaction.