Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/innovativeinventor/pylamport
A simple Python library for generating cryptographic Lamport signatures
https://github.com/innovativeinventor/pylamport
cryptography identity signature
Last synced: 6 days ago
JSON representation
A simple Python library for generating cryptographic Lamport signatures
- Host: GitHub
- URL: https://github.com/innovativeinventor/pylamport
- Owner: InnovativeInventor
- License: mit
- Created: 2019-12-03T19:45:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-24T21:20:16.000Z (almost 5 years ago)
- Last Synced: 2024-11-10T10:41:55.820Z (7 days ago)
- Topics: cryptography, identity, signature
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Pylamport
[![Build
Status](https://travis-ci.com/InnovativeInventor/pylamport.svg?branch=master)](https://travis-ci.com/InnovativeInventor/pylamport) [![codecov](https://codecov.io/gh/InnovativeInventor/pylamport/branch/master/graph/badge.svg)](https://codecov.io/gh/InnovativeInventor/pylamport)A python library for producing lamport signatures.
Lamport signatures can be constructed with any secure one-way function (usually
a hash).Anything in hashlib (for example, `hashlib.sha256`) is supported.
## Example usage
Generating keys:
```python
keys = pylamport.Lamport().gen()
```Signing a message:
```python
identity = pylamport.Lamport()
signature = identity.sign("Hello, world!")
```Verifiying a signature:
```python
identity = pylamport.Lamport()
identity.verify(signature)
```Exporting keys:
```python
identity = pylamport.Lamport()
keys = identity.export()
```## Warnings
This project was written in less than a few hours, so it may contain mistakes
and/or bugs.