This is the Coconut smart contract library implemented for Chainspace, as described in section 4.1 of the Coconut paper. The goal is to enable other application-specific smart contracts to conveniently use the Coconut cryptographic primitives through cross-contract calls. As examples, we provide implementation of:
The Coconut cryptographic scheme is available here, and a link to the full paper is available here.
Install the Chainspace Contract Framework as described here, and Coconut as described here
Tests can be run as follows:
$ pytest -v tests/
Feel free to send a PR if you wrote other Chainspace smart contracts based on Coconut!