Commit Graph

575 Commits

Author SHA1 Message Date
Ramana Kumar 6b0bdeac75
Merge pull request #51 from z3n-chada/memset-settings
Memset Settings structs before modifying them
2022-12-25 07:12:07 +00:00
z3n 37992b9a23 Memset Settings structs before modifying them 2022-12-23 18:45:03 -06:00
Ramana Kumar 08a1cdcd37
Merge pull request #45 from jtraglia/better-frees
Refactor error handling
2022-12-21 20:48:44 +00:00
Justin Traglia 0c42b74c39 Use consistent brackets 2022-12-21 14:42:50 -06:00
Justin Traglia f33c4b8060 Rename some goto labels & fix bug 2022-12-21 14:36:29 -06:00
Ramana Kumar de91ee1bbc
Merge pull request #50 from jtraglia/check-fscanf-ret-value
Check fscanf return value
2022-12-21 20:21:29 +00:00
Justin Traglia 6cf2d2e6bd Check fscanf return value 2022-12-21 11:47:48 -06:00
Justin Traglia e7e09a7605 Rename goto labels 2022-12-20 11:40:44 -06:00
Ramana Kumar 8c4e8fdbbe
Merge pull request #48 from StefanBratanov/correct_return
[Java binding] return NULL instead of 0 for jbyteArray methods
2022-12-20 17:02:48 +00:00
Justin Traglia 47adfd6812 Move free(g1_projective) to success_out 2022-12-20 10:58:19 -06:00
Stefan Bratanov 00ff3f0a78 [Java binding] return NULL instead of 0 for jbyteArray methods 2022-12-20 18:34:29 +02:00
Justin Traglia a1fb2542cb Check unchecked return values 2022-12-20 10:01:21 -06:00
Ramana Kumar c49312af56
Merge pull request #47 from StefanBratanov/invalid_blob_size
[Java binding] Throw exception for an invalid blob size
2022-12-20 14:54:25 +00:00
Stefan Bratanov 5399336f6a [Java binding] Throw exception for an invalid blob size 2022-12-20 16:49:24 +02:00
Ramana Kumar b8d90a5080
Merge pull request #43 from jtraglia/unix-arm-builds
Add ARM support for Java bindings
2022-12-20 11:05:02 +00:00
Justin Traglia 43f9d79786 Replace malloc call with c_kzg_malloc 2022-12-19 16:23:50 -06:00
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