Justin Traglia
ea41aaf964
Fix version number
2024-02-21 21:14:42 -06:00
Justin Traglia
31c9b3269f
Add workflow to publish python package
2024-02-21 14:05:47 -06:00
Justin Traglia
d637761a2e
Use official trusted setup ( #377 )
2023-10-18 13:31:55 -05:00
Justin Traglia
d0201ca2c4
Remove pyecc tests ( #300 )
...
* Remove pyecc tests
* Remove pyecc tests in CI too
2023-05-10 12:05:55 +03:00
Justin Traglia
7e755d7280
Fix a mistake in python bindings makefile ( #218 )
2023-03-17 11:56:37 +02:00
Justin Traglia
5580f355ae
Add ref test count checks for all bindings ( #211 )
2023-03-15 16:39:19 +02:00
Suphanat Chunhapanya
ccf1a4fdf0
Change on compute_[blob_]kzg_proof function signatures ( #174 )
2023-03-07 13:51:43 -06:00
Justin Traglia
8ade71a137
Update python bindings to support YAML ref tests ( #161 )
2023-03-04 11:24:03 -07:00
Justin Traglia
6b2ee20102
Add bindings to readme ( #154 )
...
* Add bindings section to readme
* Reorganize a little bit
* Remove extra blank lines
2023-02-23 17:53:08 +02:00
Justin Traglia
daa5f79fe3
Update python bindings ( #145 )
2023-02-20 16:00:13 +00:00
Justin Traglia
fd029a7d00
Fix python bindings on macOS ( #117 )
...
* Fix python bindings on macOS
* Update workflow
* Remove unnecessary Makefile vars
* Add src dir to include dirs
* Fix phony
2023-02-07 22:13:54 +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
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
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
071bd6a704
Check blob_to_kzg_commitment ret in python binding
2023-01-09 11:51:05 -06:00
Ramana Kumar
4101648253
Update python test for encoding checks
...
We ensure we are below the modulus by just using a zero final byte for
each field element encoding.
In the test, I do not understand why changing the final (zero) byte
causes verification to succeed instead of failing. But this is why the
change is now to the first byte.
2022-12-11 20:23:50 +00:00
Ramana Kumar
68f1d2dd7e
Rename load_trusted_setup to load_trusted_setup_file
2022-12-10 16:07:40 +00:00
Ramana Kumar
45ea45e48b
Make FIELD_ELEMENTS_PER_BLOB configurable in python
2022-12-01 20:31:59 +00:00
Ramana Kumar
070948d68f
Update bindings Makefiles with configurable blob size
2022-11-29 21:07:07 +00:00
Ramana Kumar
1ff5eed9d0
Remove globalize-symbol - now using patched submodule
2022-11-04 22:34:04 +00:00
Ramana Kumar
36a172f7ca
Update python ckzg.c
2022-11-04 09:18:56 +00:00
Ramana Kumar
37e9be5705
Fix references to min-src
2022-11-01 14:28:51 +00:00
Ramana Kumar
434c9ae9b9
Remove unused code, remove min- prefix
2022-11-01 14:24:02 +00:00
Dankrad Feist
2e435a7e26
Add py_ecc tests to min-bindings
2022-10-04 00:41:24 +01:00
Dankrad Feist
1e41ed4d36
Test equivalence with py_ecc
2022-09-19 19:56:43 +01:00
Ramana Kumar
bd65d49ffd
Check the proof fails on wrong data
2022-09-19 15:40:18 +01:00
Ramana Kumar
80b1c973cf
Make the tests the default make target
2022-09-19 15:40:18 +01:00
Ramana Kumar
701da680ce
Add tests of prove and verify
2022-09-19 15:40:18 +01:00
Ramana Kumar
306dcf5bac
Assume word size is 64
...
Avoids incompatible pointer type warnings on my system.
Ideally this would be sensitive to the host.
2022-09-19 15:40:18 +01:00
Ramana Kumar
43d54b8154
Add some comments to Python file, rename to tests
2022-09-19 15:40:18 +01:00
Ramana Kumar
9aa1dc289f
Compare result to Python evaluation
2022-09-19 15:40:17 +01:00
Ramana Kumar
8e5209c491
Work example up to evaluating a poly_l
2022-09-19 15:40:17 +01:00
Ramana Kumar
560127f1f5
Add some rudimentary Python access + example
2022-09-19 15:40:17 +01:00
Ramana Kumar
8eb99bcc96
Initial attempt to swig for python
2022-09-19 15:40:15 +01:00