c-kzg-4844/bindings/nim
andri lim d7511cd728
nim-bindings: fix GCC-14 [-Wincompatible-pointer-types] issue (#430)
2024-05-29 09:09:41 -05:00
..
nimble Add support for nimble package (#232) 2023-03-24 08:02:38 -05:00
tests nim-bindings: fix GCC-14 [-Wincompatible-pointer-types] issue (#430) 2024-05-29 09:09:41 -05:00
.gitignore Add Nim bindings (#176) 2023-03-08 07:04:30 -06:00
README.md Fix more typos (#397) 2024-02-22 11:55:22 -06:00
config.nims nim-bindings: lift restriction of yaml test on Nim v2.x (#431) 2024-05-28 13:49:23 -05:00
kzg.nim nim-bindings: fix GCC-14 [-Wincompatible-pointer-types] issue (#430) 2024-05-29 09:09:41 -05:00
kzg_abi.nim nim-bindings: fix GCC-14 [-Wincompatible-pointer-types] issue (#430) 2024-05-29 09:09:41 -05:00
kzg_ex.nim Nim: better handling of trusted setup (#231) 2023-03-20 21:30:50 -05:00

README.md

Nim bindings

This directory contains Nim bindings for the c-kzg-4844 library.

Requirements

These bindings support Nim compiler version 1.2, 1.4, 1.6, and devel.

You also need to install dependencies:

nimble install stew

Tests

Currently, reference tests only support Nim compiler version 1.4, and 1.6 because of yaml library limitations. But other tests that are not using yaml can be run by Nim 1.2 - devel.

Dependencies:

nimble install unittest2
nimble install yaml

Run the tests from folder bindings\nim:

nim test

Or from c-kzg-4844 root folder:

nimble test

How to use these bindings in your project

Install via nimble:

nimble install https://github.com/ethereum/c-kzg-4844

Then import one of kzg4844/kzg, kzg4844/kzg_abi, or kzg4844/kzg_ex into your project.