Skip to main content

erasure.py

Python client for the erasure protocol

Tests

Erasure Protocol version: 1.2.0

Setup:

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

Usage:

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()
    

Development:

  1. Clone & enter the repo. git clone https://github.com/ankitchiplunkar/erasure.py.git
  2. Install required libraries. pip install -r requirements.txt

Testing:

  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/

Metadata

Release files for erasure 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for erasure 0.0.4
File Size Uploaded Provenance
erasure-0.0.4.tar.gz 6.4 kB Without provenance Details

Release files / erasure-0.0.4.tar.gz

Download URL erasure-0.0.4.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c341b4a304a1ffda46b66b3b7bc36f278fbc68d77c99d0d583617864bdecfd20
BLAKE2b-256 checksum
How to use checksums
985e748a3eed2a98959631da5864f16d585057fce310974f42bb3b75e6a68976
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8

Security for erasure 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page