c-kzg-4844/bindings/nim
andri lim ad6e258694
Improve nim bindings conciseness (#191)
2023-03-08 22:05:25 -06:00
..
tests Allow invalid length inputs in nim tests (#190) 2023-03-08 22:04:23 -06:00
.gitignore Add Nim bindings (#176) 2023-03-08 07:04:30 -06:00
README.md Add Nim bindings (#176) 2023-03-08 07:04:30 -06:00
config.nims Add Nim bindings (#176) 2023-03-08 07:04:30 -06:00
kzg.nim Improve nim bindings conciseness (#191) 2023-03-08 22:05:25 -06:00
kzg_abi.nim Add Nim bindings (#176) 2023-03-08 07:04:30 -06:00
kzg_ex.nim Add Nim bindings (#176) 2023-03-08 07:04:30 -06:00

README.md

Nim bindings

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

Requirements

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

You also need to install dependencies:

nimble install stew

Tests

Currently tests only support Nim compiler version 1.4, and 1.6 because of yaml library limitations.

Dependencies:

nimble install unittest2
nimble install yaml

Run the tests from folder bindings\nim:

nim test

How to use this bindings in your project

Because the structure of folders is not a normal Nim library, we suggest you to clone this repository in your project sub folder or submodule it.

Then you can import one of the binding file into your project.

Library

The library which uses this binding is nim-kzg4844.