Skip to main content

Python library for Ethereum 9 3/4

Project description

Mimblewimble on Ethereum with zk SNARKs

Structure

  • circuits/: Circuits
  • test/: Test cases
  • Dockerfile: Docker file to test Zokrates circuits

Pre-requisite

Install docker and GNU Make

Command

Circuit Test

This will run tests/circuits/unitTest.code

make test

Python library Test

This will run python -m unittest tests/test*.py

make pytest

Make verifier contract

# Specify the circuit path to compile and export the verifier contract
make verifier circuit=YOUR_CIRCUIT_PATH

# Specify the output path
make verifier circuit=YOUR_CIRCUIT_PATH output=MyVerifier.sol

Make proof

# Specify the circuit path and arguments
make proof circuit=YOUR_CIRCUIT_PATH args='0 0 0 .. 0'

# Specify the output path
make proof circuit=YOUR_CIRCUIT_PATH args='0 0 0 .. 0' output=myProof.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py934-0.0.1.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

py934-0.0.1-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page