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 hashes)
Built Distribution
Close
Hashes for py_factom_did-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc727dd0d230acda11067821b5b42025cacee8f7dad23912726744d1a9fbdace |
|
MD5 | 2f514b2eb3e27adbb50238b2136f0b89 |
|
BLAKE2b-256 | a8b39065703495655a53a29eb4f36d6b1faf6e87cfb48d5c69fa64bb39b49d02 |