Justin Traglia
5e34bc0232
Fix some nits with nodejs ( #219 )
2023-03-17 11:55:24 +02:00
Justin Traglia
5580f355ae
Add ref test count checks for all bindings ( #211 )
2023-03-15 16:39:19 +02:00
Matthew Keil
2642595e39
Reorganize/Clean-Up Node Bindings ( #189 )
...
* refactor(node-bindings): create src/lib/test folders
* feat(node-bindings): update bundle/publish commands
* refactor(node-bindings): remove unused files and dependencies
* refactor(node-bindings): move fixtures to __fixtures__
* fix(node-bindings): revert format of fixture json file
* fix(node-bindings): prettierignore and gitignore
* feat(node-bindings): add bindings package
* fix(node-bindings): fix test setup path
* fix(node-bindings): remove post-build copy action in bindings.gyp
* fix(node-bindings): package.json keys
* Update contributors
---------
Co-authored-by: George Kadianakis <desnacked@riseup.net>
2023-03-09 18:21:28 +02:00
Matthew Keil
5ebf750a1e
Update Compute*KZGProof in node bindings ( #188 )
...
* feat(node-bindings): update Compute*KZGProof
* ComputationProof -> ProofResult
---------
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
Co-authored-by: George Kadianakis <desnacked@riseup.net>
2023-03-09 16:40:57 +02:00
Matthew Keil
87a3e4148d
Move setup handle to C in node bindings ( #177 )
...
* feat(node-bindings): move KzgSettings to c
* fix(node-bindings): typo in comment
* fix(node-bindings): remove unnecessary SetInstanceData
* feat(node-bindings): use C for setting instance data
* docs(node-bindings): fix comment on struct
* refactor(node-bindings): revert export order to minimize diff
2023-03-09 16:00:15 +02:00
Matthew Keil
ecc668bbe7
Node binding argument and return type updates ( #170 )
2023-03-06 19:28:30 -06:00
Justin Traglia
54ab82c93b
Update nodejs bindings to support YAML ref tests ( #167 )
...
* Update nodejs bindings to support YAML ref tests
* Remove c-kzg from deps
* Fix test checks
* Add return statements in error checks
* Fix uint8array comparisons
* Revert test_dir to original value
2023-03-06 12:08:59 +02:00
g11tech
021674111a
Update the node bindings version to the latest published ( #162 )
2023-03-01 12:39:37 +02:00
Justin Traglia
b34cc3ce1e
Add missing exception pending checks
2023-02-22 09:39:16 -06:00
Justin Traglia
0e78319a44
Free allocations in success case
2023-02-22 09:36:32 -06:00
Justin Traglia
4a77aeff26
Add explicit type check
2023-02-22 09:10:09 -06:00
Justin Traglia
d5bd326877
Update test names
2023-02-21 14:22:44 -06:00
Justin Traglia
21b3139dc8
Update nodejs bindings
2023-02-18 15:49:52 -06:00
Justin Traglia
8aa78231f2
Check UInt8Array lengths ( #126 )
2023-02-14 15:11:10 -06:00
Justin Traglia
dc28b03f9d
Cleanup the Makefile ( #119 )
...
* Cleanup the Makefile some
* Fix compiler error
* Fix compiler errors in tests
* Fix problems on Linux
* Add test_c_kzg_4844_cov to gitignore
* Add back closing brace for cpp
* Split clean rule into two lines
* Not echo commands when running them
* Allow other compilers to be used
* Update comment
* Only allow clang, actually
2023-02-08 17:35:33 +00:00
Daniel Coffman
c6fa137cd4
Verify blobs count matches commitments count ( #113 )
2023-02-01 20:56:03 +00:00
Justin Traglia
9076280cd2
Add compute_kzg_proof to nodejs bindings ( #92 )
2023-01-27 15:15:17 +00:00
Justin Traglia
03b90ef63f
Use Bytes48 for commitments/proofs ( #86 )
...
* Start to use bytes48 type
* Update java bindings
* Update variable names
* Update csharp bindings
* Update node.js bindings
* Update python bindings
* Fix mistake in python bindings
* Add new functions
* Fix nit in java bindings
* Update variable names in java bindings
* Compare to point at infinity
* Update bytes_to_bls_field doc
* Add todo
* Do key validation
* Remove bytes_to_g1
* Fix bug & add remark
* Fix memcmp mistake
* Fix nit in nodejs bindings
* Fix another nit
* Update nodejs parameter names
* Remove to_proof() and to_commitment()
* Fix bug
2023-01-26 14:53:30 +00:00
Justin Traglia
8907fbcfe2
Expose `compute_kzg_proof` ( #80 )
...
* Expose computeKzgProof
* Revert changes to bytes_to/from_bls_field
* Update comments
* Revert changes to bytes_from_bls_field
* Revert change to parameter name
* Add compute_kzg_proof to readme
* Refactor in support of asn's PR
* Clean up a little
* Fix param name doc
* Introduce Bytes32 type
* Update bindings
* Replaces bytes with b to match spec
2023-01-24 18:23:42 +00:00
Simonas Kalpokas
4c115844e2
Add newline in nodejs trusted setup transformation ( #78 )
2023-01-20 16:37:38 +00:00
Justin Traglia
69f6155d75
Bytes-only interface ( #62 )
...
* 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>
2023-01-16 20:05:23 +00:00
George Kadianakis
158977085c
node bindings: Add some missing memory allocation checks ( #64 )
...
* node bindings: Add some memory allocation checks
* fixup! node bindings: Add some memory allocation checks
2023-01-13 08:24:25 -08:00
Justin Traglia
c72ea8e1dc
Convert Blob type to struct ( #61 )
...
* Convert Blob type to struct
* Rename blob.data to blob.bytes
2023-01-12 10:10:23 -08:00
Justin Traglia
57a9666f93
Check ret of blob_to_kzg_commitment in nodejs bindings
2023-01-10 15:52:24 -06:00
dancoffman
704cba8ea4
Bump version
2022-12-13 15:24:24 -08:00
Daniel Coffman
ab12cef2fb
Merge branch 'ethereum:main' into dgc/fix-setting-field-element-var
2022-12-13 15:23:40 -08:00
dancoffman
cc7f62fcf0
Correctly set FIELD_ELEMENTS_PER_BLOB for distributable build
2022-12-13 15:21:40 -08:00
dancoffman
21b74bd89c
Bump package version
2022-12-13 11:25:39 -08:00
dancoffman
42f3bcef14
Actually test
2022-12-13 11:24:55 -08:00
dancoffman
4ccc48cbff
Expose verifyKzgProof
2022-12-13 11:21:43 -08:00
dancoffman
e5338b771f
Do not allow blob fields to overflow
2022-12-12 14:48:05 -08:00
Ramana Kumar
68f1d2dd7e
Rename load_trusted_setup to load_trusted_setup_file
2022-12-10 16:07:40 +00:00
Ramana Kumar
4a9a72bfbe
Also add new env variable to bindings.dist.gyp
2022-12-03 08:14:33 +00:00
Ramana Kumar
070948d68f
Update bindings Makefiles with configurable blob size
2022-11-29 21:07:07 +00:00
dancoffman
23ab03ec6a
Fix uint type for newer g++
2022-11-22 12:27:32 -08:00
dancoffman
cb55e4f2ab
NodeJS version 1.0.6
2022-11-22 12:11:05 -08:00
Ramana Kumar
bcc138560a
Update interface for verify_kzg_proof
2022-11-19 09:35:55 +00:00
dancoffman
1d3282895d
Add contributing note
2022-11-17 16:47:47 -08:00
dancoffman
3bd84cfae6
Skip the tests which fails
2022-11-17 16:41:09 -08:00
dancoffman
0b019d6a67
Test verifying aggregate proof of nothing
2022-11-17 16:41:09 -08:00
dancoffman
fe622a7171
Bump package version. npmignore testing_trusted_setups.json
2022-11-17 16:41:09 -08:00
dancoffman
242ba0adf9
Add ability to parse JSON trusted setup to text format expected by C-KZG
2022-11-17 16:41:09 -08:00
dancoffman
c9ac623fe7
Turn CPP exceptions back off to see if that fixes the ELF problem
2022-11-16 16:23:06 -08:00
dancoffman
afab8d9ea2
Revert conditions
2022-11-16 15:47:13 -08:00
dancoffman
5bf776f52a
Make C++ exceptions catchable in JS-land
2022-11-16 15:26:05 -08:00
dancoffman
75f544cdba
update test name
2022-11-09 12:14:48 -08:00
dancoffman
2232b02329
Update NodeJS unit test to expect zero element when computeAggregateKzgProof is supplied an empty array of blobs
2022-11-09 10:25:48 -08:00
Ramana Kumar
c8fab42ac0
Fix node.js build - thanks to dgcoffman
2022-11-08 22:02:38 +00:00
dancoffman
ef3f77be06
Ignore a couple more files that do not need to be published
2022-11-08 12:57:15 -08:00
dancoffman
6c50c40247
Update tests to cover blobs arrays of length zero and one
2022-11-08 12:53:36 -08:00