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:
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!