Commit Graph

559 Commits

Author SHA1 Message Date
Justin Traglia 4bd989a02a Remove free because it's freed later 2022-12-19 15:35:39 -06:00
Ramana Kumar 8b0ff7a8ee
Merge pull request #44 from jtraglia/check-malloc-ret
Check that malloc'd settings isn't null
2022-12-19 20:34:34 +00:00
Justin Traglia c45b6beba1 Clean things up a bit 2022-12-19 13:53:42 -06:00
Justin Traglia 4eb9de62d0 Free g1_projective after its final use 2022-12-19 13:29:39 -06:00
Justin Traglia 4999bd85e1 Remove try macro & convert remaining uses 2022-12-19 13:11:45 -06:00
Justin Traglia 142f9c5175 Call return after throw_exception 2022-12-19 12:22:45 -06:00
Justin Traglia 3a17ea68a0 Free all allocs in event of an error 2022-12-19 12:21:17 -06:00
Justin Traglia 26c57c4444 Check that malloc'd settings isn't null 2022-12-19 10:53:04 -06:00
Justin Traglia 3a62ca018e Convert Linux x86_64 to amd64 2022-12-19 09:52:54 -06:00
Justin Traglia 4c5f88d828 Add support for Unix ARM builds 2022-12-19 09:41:02 -06:00
Ramana Kumar 82ee54793c
Merge pull request #40 from StefanBratanov/release_jni_arrays
[Java binding] Release JNI arrays
2022-12-18 09:17:01 +00:00
Stefan Bratanov b6c0beaf8b defensive if 2022-12-18 11:13:26 +02:00
Stefan Bratanov d06df97716 [Java binding] Release JNI arrays 2022-12-18 10:58:57 +02:00
Ramana Kumar ddcf9ebff6
Merge pull request #39 from ethereum/free-fs
Free the FFTSettings when freeing a KZGSettings
2022-12-17 19:54:46 +00:00
Ramana Kumar 777972d150
Free the FFTSettings when freeing a KZGSettings
Closes #38
2022-12-17 19:47:18 +00:00
Ramana Kumar d8db26e932
Merge pull request #36 from StefanBratanov/java_binding_changes
[Java binding] Load trusted setup from params + custom exception
2022-12-16 18:46:02 +00:00
Stefan Bratanov 46d64e231a [Java binding] Load trusted setup from params + custom exception 2022-12-16 13:42:53 +02:00
Ramana Kumar 17626f0fd7
Merge pull request #35 from StefanBratanov/verify_kzg_proof_tests
[Java binding] Add test vectors for `verifyKzgProof`
2022-12-16 11:29:23 +00:00
Stefan Bratanov 17fe743fa3 [Java binding] Add test vectors for `verifyKzgProof` 2022-12-15 09:38:41 +02:00
Ramana Kumar 1768321fc3
Merge pull request #33 from StefanBratanov/align_with_spec
Align trusted_setup.txt with the spec
2022-12-14 23:18:34 +00:00
Stefan Bratanov b1a7d48a89 Align trusted_setup.txt with the spec 2022-12-14 12:18:02 +02:00
Ramana Kumar f2c57eeef9
Merge pull request #31 from dgcoffman/dgc/fix-setting-field-element-var
Correctly set FIELD_ELEMENTS_PER_BLOB for distributable build
2022-12-14 07:46:35 +00: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
Ramana Kumar 130b629d4c
Merge pull request #29 from dgcoffman/dgc/expose-verify-proof
Expose verifyKzgProof
2022-12-13 21:06:32 +00: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
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