https://github.com/innovativeinventor/pylamport
A simple Python library for generating cryptographic Lamport signatures
https://github.com/innovativeinventor/pylamport
cryptography identity signature
Last synced: 5 months 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-24T21:20:16.000Z (over 5 years ago)
- Last Synced: 2025-02-09T13:46:06.544Z (5 months 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
[](https://travis-ci.com/InnovativeInventor/pylamport) [](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.