Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.03 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.03 KB

Sinsemilla haskell implementation

A haskell sinsemilla hash function implementation using PastaCurves and inspired by the Zebra sinsemilla implementation in Rust.

This is experimental/proof of concept code.

There is a Sinsemilla TLA+ spec but this implementation is not following that specification yet as it was coded before the specification exist. The plan is to refactor the implementation to meet the spec. Progress for that will be tracked in #1

Demo

stack run

or

cabal run

Example:

% stack run 
---Sinsemilla hash function---

Insert a domain to be used:
test1
Insert message to be hashed:
this is a test

B64 encoded ciphertext:

VHCDjVMz9uY6bVLBE6/MM9vRZvxNRe3IIlyzVkky5Ro=

% 

Tests

stack test

or

cabal test