* feat: add serde impls to Blob and Bytes48
* remove duplicate serde file
* cargo fmt
* serialize and deserialize with prefix
* cargo fmt
* use different trusted setup based on minimal spec
* add Bytes32 serde impls
* test(node-bindings): add argument count unit tests
* test(node-bindings): make arg length check more explicit
* refactor(node-bindings): make getValidTest to DRY code
* test(node-bindings): extra args give same result
* refactor(node-bindings): adjust unit test spacing
* refactor(node-bindings): move argument length checks to it block
* refactor(node-bindings): simplify arg slicing
* chore(node-bindings): lint/format code
* docs(node-bindings): add docstring to test helper functions
* test(node-bindings): fix bytesEqual and add docstrings to all helper functions
* refactor(node-bindings): change name to assertBytesEqual
* Sanity check that trusted setup was loaded in Lagrange form
* fixup! Sanity check that trusted setup was loaded in Lagrange form
* Fix some nits
* Fix another nit
---------
Co-authored-by: Justin Traglia <jtraglia@pm.me>
* Replace g1 points with g1 lagrange points
* Swap out validate_kzg_g1 with blst funcs
* Update minimal preset too
* Fix java & nodejs bindings
* Put variables in smaller scope
* Update some comments
* Remove FFTSettings (#2)
* Fix issue when expanding roots of unity
* Fix formatting
* Revert back to using intermediate array
* Add missing c_kzg_free
* Fix some nits
* Replace free_kzg_settings with free_trusted_setup
* Add parens to NUM_ELEMENTS
Co-authored-by: George Kadianakis <desnacked@riseup.net>
* Move memcpy to the end
* Revert "Move memcpy to the end"
This reverts commit 5331c7feadc92e4b5dd5d4e7512e4be563d7f386.
* Add comment about free_trusted_setup
* Move check before alloc
* Add remark
* Delete unnecessary blank line
* Fix asn's nits
* Update comment for roots_of_unity in header
Co-authored-by: Gottfried Herold <GottfriedHerold@users.noreply.github.com>
* Fix formatting
* Update comment about max_scale
Co-authored-by: Gottfried Herold <GottfriedHerold@users.noreply.github.com>
---------
Co-authored-by: Suphanat Chunhapanya <haxx.pop@gmail.com>
Co-authored-by: George Kadianakis <desnacked@riseup.net>
Co-authored-by: Gottfried Herold <GottfriedHerold@users.noreply.github.com>
Since `DirSep` matches the default separator of the target OS, it's
not suitable for performing path operations during compile-time on
the host OS.
The particular fix here solves the issue for cross-compiling a Windows
build from a Linux host, but Nim seems to need a more general solution
for detecting the host OS during compilation, so a host OS specific
separator can be used in paths derived from `currentSourcePath`.