Python Identity Keys
This package allows you to generate public-private key pairs and use them to sign and validate signatures.
Requirements
Python 3.4+
Installation
pip install
You can install the package hosted on PyPi by using pip:
pip install python-identitykeys
Then import the package:
import identitykeys
Usage Guide
Generate Keys
private_key, public_key = identitykeys.generate_key_pair() print(private_key.to_string(), " - ", public_key.to_string())
Sign Message
message = b'hello' signature = private_key.sign(message) print(signature.to_string())
Validate Message
result = public_key.verify(signature, message) print(result.to_string())
Harmony Connect Documentation
This package is built to help you use the Factom Signing Standard on the Factom blockchain. To learn how to easily write to the Factom Blockchain, please visit the Harmony Connect documentation.
You can create a free account at Factom.com.
Release files for python-identitykeys 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-identitykeys-0.2.1.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_identitykeys-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:8.0 kB
Release files / python-identitykeys-0.2.1.tar.gz
| Download URL | python-identitykeys-0.2.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e15284a5e5b050654815d364942c2bc7be3eb8e4bee8a2d251dd1903d826261
|
|
BLAKE2b-256 checksum How to use checksums |
51aadf8627d190a22ef69ba70ca4a012a6dacf8ed4fa96efb651fc8c62034982
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / python_identitykeys-0.2.1-py3-none-any.whl
| Download URL | python_identitykeys-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2700e3d361e985707c1ecf8bdf684e5fee71abae4303ab5595edb6c55b787a56
|
|
BLAKE2b-256 checksum How to use checksums |
40b975c293d382cb4eeb9236149e82428abb7bf9d60de48177fc899773f7a915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|