Zerocoin: C++ lib for anonymous extension to bitcoin
C++ C TeX
Permalink
Failed to load latest commit information.
Build-gcc removed debug flags Jul 10, 2013
CMake Created CMake based build system Jul 20, 2013
bitcoin_bignum Rename uint to uint32_t Jul 11, 2013
documentation libzerocoin initial commit Jul 5, 2013
.gitignore Created CMake based build system Jul 20, 2013
Accumulator.cpp Removed publicCoin::isValid() Jul 31, 2013
Accumulator.h Ran the 'Artistic Style' code indenter over the full codebase Jul 10, 2013
AccumulatorProofOfKnowledge.cpp Ran the 'Artistic Style' code indenter over the full codebase Jul 10, 2013
AccumulatorProofOfKnowledge.h Ran the 'Artistic Style' code indenter over the full codebase Jul 10, 2013
Benchmark.cpp Modified the "fast mint" procedure in Coin.cpp Jul 12, 2013
CMakeLists.txt Updated CMake to add 'make install' and 'make uninstall' Jul 24, 2013
Coin.cpp Removed publicCoin::isValid() Jul 31, 2013
Coin.h Removed publicCoin::isValid() Jul 31, 2013
CoinSpend.cpp Switched all invalid_argument exceptions to be ZerocoinExceptions. Jul 13, 2013
CoinSpend.h Ran the 'Artistic Style' code indenter over the full codebase Jul 10, 2013
Commitment.cpp Switched all invalid_argument exceptions to be ZerocoinExceptions. Jul 13, 2013
Commitment.h Ran the 'Artistic Style' code indenter over the full codebase Jul 10, 2013
LICENSE Created CMake based build system Jul 20, 2013
ParamGeneration.cpp bug fix AFAICT: these generators should have different values Feb 21, 2014
ParamGeneration.h Ran the 'Artistic Style' code indenter over the full codebase Jul 10, 2013
Params.cpp Ran the 'Artistic Style' code indenter over the full codebase Jul 10, 2013
Params.h changed "uint" to "uint32_t" in two files Jul 10, 2013
README.cmake Updated CMake to add 'make install' and 'make uninstall' Jul 24, 2013
README.md Fix Wiki links Jul 8, 2013
SerialNumberSignatureOfKnowledge.cpp changed "uint" to "uint32_t" in two files Jul 10, 2013
SerialNumberSignatureOfKnowledge.h Ran the 'Artistic Style' code indenter over the full codebase Jul 10, 2013
SpendMetaData.cpp Centralized all #includes into "Zerocoin.h" Jul 8, 2013
SpendMetaData.h Ran the 'Artistic Style' code indenter over the full codebase Jul 10, 2013
Tests.cpp Removed publicCoin::isValid() Jul 31, 2013
Tutorial.cpp Removed publicCoin::isValid() Jul 31, 2013
Zerocoin.h New optimization: cuts coin minting time in half Jul 11, 2013
paramgen.cpp Ran the 'Artistic Style' code indenter over the full codebase Jul 10, 2013
zerocoin.pc.in Updated CMake to add 'make install' and 'make uninstall' Jul 24, 2013

README.md

Introduction

libzerocoin is a C++ library that implements the core cryptographic routines of the Zerocoin protocol. Zerocoin is a distributed anonymous cash extension for Bitcoin-type (hash chain based) protocols. The protocol uses zero knowledge proofs to implement a fully decentralized coin laundry.

The Zerocoin protocol is provably secure and uses well-studied cryptographic primitives. For a complete description of the protocol, see our white paper published in the IEEE Security & Privacy Symposium (2013) below.

WARNING

THIS IS DEVELOPMENT SOFTWARE. WE DON'T CERTIFY IT FOR PRODUCTION USE. WE ARE RELEASING THIS DEV VERSION FOR THE COMMUNITY TO EXAMINE, TEST AND (PROBABLY) BREAK. IF YOU SEE SOMETHING, SAY SOMETHING! IN THE COMING WEEKS WE WILL LIKELY MAKE CHANGES TO THE WIRE PROTOCOL THAT COULD BREAK CLIENT COMPATIBILITY. SEE HOW TO CONTRIBUTE FOR A LIST OF WAYS YOU CAN HELP US.

WARNING WARNING

NO, SERIOUSLY. THE ABOVE WARNING IS NOT JUST BOILERPLATE. THIS REALLY IS DEVELOPMENT CODE AND WE'RE STILL ACTIVELY LOOKING FOR THE THINGS WE'VE INEVITABLY DONE WRONG. PLEASE DON'T BE SURPRISED IF YOU FIND OUT WE MISSED SOMETHING FUNDAMENTAL. WE WILL BE TESTING AND IMPROVING IT OVER THE COMING WEEKS.

WARNING WARNING WARNING

WE'RE NOT JOKING. DON'T MAKE US PULL AN ADAM LANGLEY AND TAKE AWAY THE MAKEFILE.

Overview of the Library

libzerocoin implements the core cryptographic operations of Zerocoin. These include:

  1. Parameter generation
  2. Coin generation ("Minting")
  3. Coin spending (generation of a zero knowledge proof)
  4. Accumulator calculation
  5. Coin and spend proof verification

This library does not implement the full Zerocoin protocol. In addition to the above cryptographic routines, a full Zerocoin implementation requires several specialized Zerocoin messages, double spending checks, and some additional coin redemption logic that must be supported by all clients in the network. libzerocoin does not provide routines to support these functions, although we do provide an overview on the Integrating with Bitcoin clients page.

Outside links