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

https://github.com/primefactor-io/lhtlp

Implementation of the Linearly-Homomorphic Time-Lock Puzzle scheme
https://github.com/primefactor-io/lhtlp

cryptography cryptography-algorithms homomorphic-cryptography-scheme homomorphic-encryption homomorphic-encryption-library time-lock time-lock-puzzle

Last synced: 8 days ago
JSON representation

Implementation of the Linearly-Homomorphic Time-Lock Puzzle scheme

Awesome Lists containing this project

README

        

# Linearly Homomorphic Time-Lock Puzzles

Implementation of the Linearly-Homomorphic Time-Lock Puzzle algorithm as described in section 4.1 "Linearly Homomorphic" of the paper [Homomorphic Time-Lock Puzzles and Applications](https://eprint.iacr.org/2019/635.pdf) by Malavolta et al.

This implementation also features the extension mentioned in section 5.1 "Semi-Compact Scheme for Branching Programs" which allows for larger message spaces.

## Setup

1. `git clone `
2. `asdf install` (optional)
3. `go test -count 1 -race ./...`

## Useful Commands

```sh
go run
go build []

go test [][/...] [-v] [-cover] [-race] [-short] [-parallel ]
go test -bench=. [] [-count ] [-benchmem] [-benchtime 2s] [-memprofile ]

go test -coverprofile []
go tool cover -html
go tool cover -func

go fmt []

go mod init []
go mod tidy
```

## Useful Resources

- [Go - Learn](https://go.dev/learn)
- [Go - Documentation](https://go.dev/doc)
- [Go - A Tour of Go](https://go.dev/tour)
- [Go - Effective Go](https://go.dev/doc/effective_go)
- [Go - Playground](https://go.dev/play)
- [Go by Example](https://gobyexample.com)
- [100 Go Mistakes and How to Avoid Them](https://100go.co)