Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Tools for using Factom identity keys

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-identitykeys, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size python_identitykeys-0.2.1-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size python-identitykeys-0.2.1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page