Skip to main content

Python library for Factom DIDs

Project description

Build Status Coverage Status License: MIT Code style: black

py-factom-did

py-factom-did is a Python library, allowing the creation of a Decentralized Identifier (DID) and the exporting of the public metadata for it, which can be recorded on the Factom blockchain. The library enables:

  • creating a new DID
  • adding management key(s) for the DID
  • adding DID key(s) for the DID
  • adding service(s) for the DID
  • exporting public metadata to be recorded on Factom
  • encrypting the newly created keys

You can find an example of the library workflow in the examples/ directory. In order to run the example, please note that it is necessary to:

  • have local instances of factomd and factom-walletd running
  • create an environment variable called EC_ADDR, which contains a funded EC address to pay the fees for recording the DID on-chain

Installation

pip install py-factom-did

Build

  • Clone the repo

  • Create the virtual environment and install the dependencies:

pipenv install

or

pipenv install --pre -d

to install both the default and development dependencies

  • Activate the virtual environment:
pipenv shell
  • Execute the tests:
pytest
  • Execute the example:
python -m examples.example

Documentation

API documentation of the library is available here

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

py-factom-did-0.3.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

py_factom_did-0.3.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file py-factom-did-0.3.0.tar.gz.

File metadata

  • Download URL: py-factom-did-0.3.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for py-factom-did-0.3.0.tar.gz
Algorithm Hash digest
SHA256 922ccb83a8e9d2d66f85d6d6d846099c24220e5d0df337687f672917955320db
MD5 e24ef0a642d9cbb9e053d6c81b3d89cc
BLAKE2b-256 41b21f649230c0d1f1f9b83b3d4a3c62a4c767c85d3afaf087e9bc1e9da72ba1

See more details on using hashes here.

File details

Details for the file py_factom_did-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: py_factom_did-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for py_factom_did-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bac303169ccb24d79627d491975c15e9501096ff4fc5e57a948a822567d210d3
MD5 9f7d77dae5a0dd55c1300937dc385085
BLAKE2b-256 fb39269218d009e66fbad2aae3f648167ae865aa5636f8a6272d8cf0382f3c25

See more details on using hashes here.

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