Skip to main content

A python library to interact with the erasure protocol.

Project description

Python client for the erasure protocol


Erasure Protocol version: 1.2.0


  1. Create & activate virtulenv (python 3.6+)
  2. Install the library using pypi. pip install erasure


The client is built to replicate the usage here.

  1. Update the settings by configuring the appropriate enviornment variables.
  2. Initialize a client:
    erasure_client = ErasureClient(w3, mode, version)
  3. Create a feed:
    feed = Feed(erasure_client=erasure_client, feed_address=FEED_ADDRESS)
  4. Submit a post:
    receipt = feed.create_post(raw_data, key=key)
    Note: The encryption keys, and data for this post will be saved in ERASURE_KEY_STORE/<proof_hash>
  5. Reveal a post:
    key_cid, data_cid = post.reveal()


  1. Clone & enter the repo. git clone
  2. Install required libraries. pip install -r requirements.txt


  1. Launch a local version of erasure protocol via ganache
  2. Install, initlalize and run the ipfs daemon locally ipfs daemon
  3. Run the tests locally pytest -vv tests/

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

erasure-0.0.4.tar.gz (6.4 kB view hashes)

Uploaded source

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