Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.