Commit Graph

780 Commits

Author SHA1 Message Date
Ramana Kumar c0e5adff1d
Merge pull request #20 from ethereum/check_encodings
Add checks that field elements are canonical
2022-12-13 07:33:51 +00:00
Ramana Kumar e9b225f8e1
Merge pull request #28 from dgcoffman/dgc/fix-nodejs-test-blob-data
Do not allow blob fields to overflow
2022-12-13 07:28:06 +00:00
dancoffman e5338b771f
Do not allow blob fields to overflow 2022-12-12 14:48:05 -08:00
Ramana Kumar 382cd2d6ff
Merge pull request #26 from flcl42/check_encodings
Align C# tests with the modulus check
2022-12-11 21:10:14 +00:00
Alexey Osipov 86f9f5d2ec Align tests with the modulus check 2022-12-12 00:01:21 +03: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 cfa36097a3
Add checks that field elements are canonical 2022-12-11 20:23:48 +00:00
Ramana Kumar 0f54189400
Merge pull request #24 from ethereum/no_file
Load trusted setup from arguments
2022-12-11 18:23:38 +00:00
Ramana Kumar dc3fdcf49b
Merge pull request #25 from StefanBratanov/canonical_blobs
[Java binding] Use canonical random blobs in tests
2022-12-10 19:35:35 +00:00
Stefan Bratanov 4a0fed73b2 update gradle wrapper 2022-12-10 21:06:11 +02:00
Stefan Bratanov 971484f85c Use canonical random blobs in tests 2022-12-10 21:05:16 +02:00
Ramana Kumar 547fd39e60
Add non-file-based load_trusted_setup
Closes #3
2022-12-10 16:23:32 +00:00
Ramana Kumar 68f1d2dd7e
Rename load_trusted_setup to load_trusted_setup_file 2022-12-10 16:07:40 +00:00
Ramana Kumar 03f5f1d5d0
Merge pull request #19 from StefanBratanov/java_binding_preset_loading
Java binding - load library based on a preset
2022-12-06 22:32:30 +00:00
Ramana Kumar 2bd4c3b252
Check more allocations for failure 2022-12-06 22:13:18 +00:00
Stefan Bratanov e59f8296e8 add a dot in README 2022-12-06 15:03:58 +00:00
Stefan Bratanov b086cfe9da Add hprof files to gitignore 2022-12-06 13:14:37 +00:00
Stefan Bratanov 0072efe70a Java binding - load library based on a preset 2022-12-06 12:58:56 +00:00
Ramana Kumar 78bf846f69
Merge pull request #16 from ethereum/configure_blob_size
Make FIELD_ELEMENTS_PER_BLOB compile-time configurable
2022-12-06 12:48: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 7b3477c6e9
Merge pull request #15 from asn-d6/compute_challenges_spec
Bring compute_challenges() and compute_powers() closer to the spec
2022-12-02 10:48:41 +00:00
George Kadianakis bdfa79ca47 compute_challenges(): Use a single hash_input array 2022-12-02 12:36:11 +02:00
George Kadianakis bcf14e7662 compute_powers(): Be consistent about argument types 2022-12-02 12:35:24 +02:00
Ramana Kumar f747834382
Add example setup for FIELD_ELEMENTS_PER_BLOB=4 2022-12-01 20:32:27 +00:00
Ramana Kumar 45ea45e48b
Make FIELD_ELEMENTS_PER_BLOB configurable in python 2022-12-01 20:31:59 +00:00
Ramana Kumar 5b0aab2d58
Remove assumption about FIELD_ELEMENTS_PER_BLOB 2022-12-01 20:31:21 +00:00
Ramana Kumar 151d6d1571
Merge pull request #18 from flcl42/main
Add automatic build increment
2022-11-30 18:08:13 +00:00
Alexey c0e6d8c3c2 Add automatic build increment 2022-11-30 11:35:32 +03:00
Ramana Kumar de36196184
Do not mess with java bindings CC_FLAGS 2022-11-29 21:19:03 +00:00
Ramana Kumar 070948d68f
Update bindings Makefiles with configurable blob size 2022-11-29 21:07:07 +00:00
Ramana Kumar c9274d8f43
Make FIELD_ELEMENTS_PER_BLOB compile-time configurable 2022-11-29 20:48:12 +00:00
Ramana Kumar 63451ea6eb
Merge pull request #17 from ethereum/makefile-indent
Indent Makefile without spaces
2022-11-29 20:17:24 +00:00
Ramana Kumar f1a210dba4
Indent Makefile without spaces
Avoid using the recipe prefix for non-recipe code
2022-11-29 20:15:19 +00:00
George Kadianakis 80fe1cb3e0 Bring compute_powers() closer to the spec 2022-11-29 19:03:19 +02:00
George Kadianakis 94aa388055 Bring compute_challenges() closer to the spec 2022-11-29 18:46:21 +02:00
Ramana Kumar 36ffd2fb34
Merge pull request #14 from StefanBratanov/cross_compile_java
Add cross compile parameterization for the java binding
2022-11-29 14:37:27 +00:00
Stefan Bratanov 26ac90da96 Add cross compile parameterization for the java binding 2022-11-29 10:56:31 +00:00
Ramana Kumar 12df969a26
Merge pull request #13 from StefanBratanov/makefile_improvements
Parameterize clang executable and the blst build script
2022-11-28 20:04:54 +00:00
Stefan Bratanov b9777a6f67 Parameterize clang executable and the blst build script 2022-11-28 18:38:24 +00:00
Ramana Kumar 1a30272d14
Merge pull request #9 from ethereum/3093
Update Fiat-Shamir protocol to match specs
2022-11-27 19:38:59 +00:00
Ramana Kumar b69104859f
Make bytes big enough in case n == 0 2022-11-26 22:14:21 +00:00
Ramana Kumar 8a6f9f5b7c
Merge pull request #12 from StefanBratanov/java_bindings_improvements
Java bindings improvements
2022-11-26 22:07:36 +00:00
Stefan Bratanov 68d7c69ffc rename and javadocs change 2022-11-26 13:07:13 +00:00
Ramana Kumar 73d5d2fb0b
Statically allocate hash_output 2022-11-25 22:07:34 +00:00
Stefan Bratanov fd9f16c9a9 fix readme 2022-11-25 15:53:22 +00:00
Stefan Bratanov b77bd70817 enhancing the performance test 2022-11-25 14:53:47 +00:00
Stefan Bratanov 73bba9ef91 change library output folder and make it configurable 2022-11-25 14:53:47 +00:00
Stefan Bratanov ec7eae4815 Java bindings improvements 2022-11-25 14:53:47 +00:00
Ramana Kumar 438ebf874b
Merge pull request #10 from tbenr/patch-1
Java binding compilation improvement for macos
2022-11-25 14:22:38 +00:00
Enrico Del Fante c823c9b577
indentation2 2022-11-25 11:21:57 +01:00