Git Product home page Git Product logo

libzerocoin's Introduction

WE WEREN'T JOKING. THERE WERE WARNINGS THAT THIS WAS BUGGY PROTOTYPE CODE AND YOU USED IT ANYWAY. SO WE'VE TAKEN AWAY THE MAKEFILE. THIS CODE IS ABANDONED (AND HAS BEEN SINCE 2014)

THIS CODE IS UNMAINTAINED AND HAS KNOWN EXPLOITS. DO NOT USE IT.

THERE ARE DOWNSTREAM COPIES THAT MIGHT HAVE BETTER SECURITY. THEN AGAIN, SOME PROJECTS COPIED THE CODE VERBATIM COMPLETE WITH THE BELOW WARNING, SO CAVEAT EMPTOR.

The successor protocol that has undergone substaintial cryptographic and code review is Zerocash/Zcash. More can be found at https://github.com/zcash. We strongly suggest you use that instead. It is also open source.

Introduction

libzerocoin WAS a C++ library that implemented 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

libzerocoin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libzerocoin's Issues

General Question: How close is this to being fully implemented?

I hear that #zerocoin is going to be implemented into two alt-chain currencies and that it is maybe, at this point, a month or so away from being ready to be... integrated into bitcoin? Is that still a possibility - and if so would it make anonymous transactions an option for bitcoin users?

What is expected to come of this? It is so timely and it seems like something significant is about to happen that involves #libzerocoin and #bitcoin. So my question is... in layman's terms, what is that thing?

Mainly I am hoping to get an answer to this from @matthewdgreen and perhaps from others who have been working on this. Thanks in advance.

PrivateCoin deserializarion

PrivateCoin object deserializarion doesn't work.

Just one example:

        libzerocoin::PrivateCoin newCoin(params);

        CDataStream serializedPrivCoin(SER_NETWORK, PROTOCOL_VERSION);
        serializedPrivCoin << newCoin;

        libzerocoin::PrivateCoin newPrivCoin(params, serializedPrivCoin); // Compilation fails here

Compilation fails with the following output

In file included from ../Zerocoin.h:52:0,
                 from ../Test.cpp:20:
../Coin.h: In constructor 'libzerocoin::PrivateCoin::PrivateCoin(const libzerocoin::Params*, Stream&) [with Stream = CDataStream]':
../Test.cpp:92:66:   instantiated from here
../Coin.h:88:54: error: no matching function for call to 'libzerocoin::PublicCoin::PublicCoin()'
../Coin.h:88:54: note: candidates are:
../Coin.h:50:2: note: libzerocoin::PublicCoin::PublicCoin(const libzerocoin::Params*, const Bignum&, libzerocoin::CoinDenomination)
../Coin.h:50:2: note:   candidate expects 3 arguments, 0 provided
../Coin.h:42:2: note: libzerocoin::PublicCoin::PublicCoin(const libzerocoin::Params*)
../Coin.h:42:2: note:   candidate expects 1 argument, 0 provided
../Coin.h:38:2: note: template<class Stream> libzerocoin::PublicCoin::PublicCoin(const libzerocoin::Params*, Stream&)
../Coin.h:35:7: note: libzerocoin::PublicCoin::PublicCoin(const libzerocoin::PublicCoin&)
../Coin.h:35:7: note:   candidate expects 1 argument, 0 provided
make: *** [Test.o] Error 1
$ 

It seems that something wrong with newPrivCoin->publicCoin property initializarion. I guess that empty constructor should be added into the PublicCoin class implementation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.