Skip to content

Sinsemilla hash function haskell implementation

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

oxarbitrage/sinsemilla

Repository files navigation

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

About

Sinsemilla hash function haskell implementation

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published