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
- Host: GitHub
- URL: https://github.com/primefactor-io/lhtlp
- Owner: primefactor-io
- License: apache-2.0
- Created: 2025-05-11T11:48:26.000Z (12 days ago)
- Default Branch: master
- Last Pushed: 2025-05-15T05:46:27.000Z (9 days ago)
- Last Synced: 2025-05-15T06:34:51.736Z (9 days ago)
- Topics: cryptography, cryptography-algorithms, homomorphic-cryptography-scheme, homomorphic-encryption, homomorphic-encryption-library, time-lock, time-lock-puzzle
- Language: Go
- Homepage: https://primefactor.io
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 -funcgo 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)