Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 553 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 553 Bytes

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.