Skip to content

A simple Python library for generating cryptographic Lamport signatures

License

Notifications You must be signed in to change notification settings

InnovativeInventor/pylamport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pylamport

Build Status codecov

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:

keys = pylamport.Lamport().gen()

Signing a message:

identity = pylamport.Lamport()
signature = identity.sign("Hello, world!")

Verifiying a signature:

identity = pylamport.Lamport()
identity.verify(signature)

Exporting keys:

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.

About

A simple Python library for generating cryptographic Lamport signatures

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages