mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-10 02:05:37 +00:00
69f6155d75
* Convert argument types to bytes * Update java bindings * Update python bindings * Update node.js bindings * Update c# bindings * Fix java binding compile issues * Fix incorrect memcpy in nodejs bindings * Fix bug (called the wrong func) * Fix issues with java bindings * Fix issues with node.js bindings * Remove unnecessary wrapped funcs for c# * Rename struct member to bytes * Use goto out for callocs * Fix nit * Make un-exported funcs static * Fix python bindings * Check commitment length in python bindings * Update python error message * Steal good ideas from #37 * Fix tests.py which didn't get copied over * Convert remaining a[] to *a * Add missing Py_DECREF * Bytes only rust (#1) * Make interface bytes only * Fix benches * Avoid newtypes for kzg types * Fix benches again * Make fields private * tidy * Address review comments * Fix one small thing in rust bindings * Use ckzg types where possible * Remove null terminator from domain bytes in rust * Update rust binding docs * Use BYTES_PER_* where applicable * Add extra check for calloc Co-authored-by: Pawan Dhananjay <pawandhananjay@gmail.com>
18 lines
498 B
Makefile
18 lines
498 B
Makefile
INCLUDE_DIRS = .. ../../src ../../inc
|
|
INCLUDE_PY = $(shell python3 -c 'import sysconfig; print(sysconfig.get_config_var("INCLUDEPY"))')
|
|
|
|
FIELD_ELEMENTS_PER_BLOB?=4096
|
|
|
|
.PHONY: all
|
|
|
|
all: test ecc_test
|
|
|
|
test: tests.py ckzg.so
|
|
python3 $<
|
|
|
|
ecc_test: py_ecc_tests.py ckzg.so
|
|
python3 $<
|
|
|
|
ckzg.so: ckzg.c ../../src/c_kzg_4844.o ../../lib/libblst.a
|
|
clang -O -Wall -shared -fPIC -Wl,-Bsymbolic -I${INCLUDE_PY} ${addprefix -I,${INCLUDE_DIRS}} -DFIELD_ELEMENTS_PER_BLOB=${FIELD_ELEMENTS_PER_BLOB} -o $@ $^
|