Python library for Factom DIDs
Project description
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
andfactom-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
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.2.0.tar.gz
(9.0 kB
view details)
Built Distribution
File details
Details for the file py-factom-did-0.2.0.tar.gz
.
File metadata
- Download URL: py-factom-did-0.2.0.tar.gz
- Upload date:
- Size: 9.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb554e7b94dbbe7a5c9f6677fdfe6228413f7a446433717e6d635e5d3dbd4d8b |
|
MD5 | a293069e99a99379c0f8a1270956a70d |
|
BLAKE2b-256 | 6ace8780df4b98fc22249ce9ea00f0849193872ccb3758689e09ba40914f7bb0 |
File details
Details for the file py_factom_did-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: py_factom_did-0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc727dd0d230acda11067821b5b42025cacee8f7dad23912726744d1a9fbdace |
|
MD5 | 2f514b2eb3e27adbb50238b2136f0b89 |
|
BLAKE2b-256 | a8b39065703495655a53a29eb4f36d6b1faf6e87cfb48d5c69fa64bb39b49d02 |