erasure.py
Python client for the erasure protocol
Erasure Protocol version: 1.2.0
Setup:
- Create & activate virtulenv (python 3.6+)
- Install the library using pypi.
pip install erasure
Usage:
The client is built to replicate the usage here.
- Update the settings by configuring the appropriate enviornment variables.
- Initialize a client:
erasure_client = ErasureClient(w3, mode, version) - Create a feed:
feed = Feed(erasure_client=erasure_client, feed_address=FEED_ADDRESS) - Submit a post:
Note: The encryption keys, and data for this post will be saved inreceipt = feed.create_post(raw_data, key=key)ERASURE_KEY_STORE/<proof_hash> - Reveal a post:
key_cid, data_cid = post.reveal()
Development:
- Clone & enter the repo.
git clone https://github.com/ankitchiplunkar/erasure.py.git - Install required libraries.
pip install -r requirements.txt
Testing:
- Launch a local version of erasure protocol via ganache
- Install, initlalize and run the ipfs daemon locally
ipfs daemon - 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)
| 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.