https://github.com/spiral-ladder/kzigg
KZG polynomial commitments in Zig
https://github.com/spiral-ladder/kzigg
crypto eip-4844 ethereum kzg zig zk
Last synced: 8 months ago
JSON representation
KZG polynomial commitments in Zig
- Host: GitHub
- URL: https://github.com/spiral-ladder/kzigg
- Owner: spiral-ladder
- License: apache-2.0
- Created: 2024-01-07T05:14:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-17T10:00:15.000Z (about 1 year ago)
- Last Synced: 2025-06-17T11:19:01.110Z (about 1 year ago)
- Topics: crypto, eip-4844, ethereum, kzg, zig, zk
- Language: Zig
- Homepage:
- Size: 238 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KZG Polynomial Commitments
An implementation of [**KZ**ig**G** polynomial commitments](http://cacr.uwaterloo.ca/techreports/2010/cacr2010-10.pdf) in Zig, using [`blst`](https://github.com/supranational/blst) as the backend via Zig's C interop.
Heavily based on [c-kzg-4844](https://github.com/ethereum/c-kzg-4844).
_Disclaimer: this repository is me learning how KZG and 4844 works underneath and is not meant for real world use._
## Prerequisites
You need Zig installed and `blst` built to use as a static library.
This repo is built and tested on `v0.14.0`.
## Test
```sh
zig build test -Doptimize=ReleaseSafe
```
## Benchmark
```sh
zig build benchmark
```