Commit Graph

283 Commits

Author SHA1 Message Date
Ramana Kumar ce8707b5b7
Update csharp ckzg.c 2022-11-04 09:07:05 +00:00
Ramana Kumar 99a990ff32
Add some of the bytes conversions back to the interface
These might still be needed for the G1 elements even though they're not
needed for blobs now.

Also make FIAT_SHAMIR_PROTOCOL_DOMAIN static to avoid redefinitions.
2022-11-04 09:05:39 +00:00
Ramana Kumar 2b0f6a5c09
Update src for merged-3038 specs
bindings/tests not updated
2022-11-03 17:16:57 +00:00
Ramana Kumar cd9d142079
Tidy away some more unused things 2022-11-02 20:29:20 +00:00
Ramana Kumar 3b0d68036b
Fix bug in compute_powers 2022-11-02 15:51:06 +00:00
Ramana Kumar d3465ec8d4
Remove some unused gitignore 2022-11-01 14:37:00 +00:00
Ramana Kumar 270ba19030
Add back trusted_setup.txt
was lost in the move
2022-11-01 14:36:23 +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
Ramana Kumar 54e01973cf
Add verify_kzg_proof back to csharp bindings 2022-10-31 13:42:38 +00:00
Ramana Kumar af895c8d2c
Add verify_kzg_proof back to interface 2022-10-31 13:42:06 +00:00
Ramana Kumar c37a1234e1
Include initializer in hash_to_bls_field (now hash_to_bytes) 2022-10-22 15:43:10 +01:00
Ramana Kumar 140ee4c187
Sketch update to csharp interface 2022-10-20 19:29:36 +01:00
Ramana Kumar 800f450e5b
Get py_ecc_tests to run again by skipping some 2022-10-20 08:52:49 +01:00
Ramana Kumar 8f23d9da44
Rewrite python bindings and tests for new interface
ecc tests not updated
2022-10-20 08:37:40 +01:00
Ramana Kumar bd183d2cd6
Precompute max_scale 2022-10-20 08:36:59 +01:00
Ramana Kumar a1e5304cbc
Make the sha functions visible with objcopy
This will make portable builds tricky
2022-10-20 08:35:58 +01:00
Ramana Kumar dee1769ecc
Avoid VLAs, use calloc instead 2022-10-20 08:35:12 +01:00
Ramana Kumar e023376c8e
Be more careful with TRY: avoid when free needed 2022-10-20 08:33:47 +01:00
Ramana Kumar e810aebc28
Read trusted setup lengths from file and check 2022-10-20 08:29:59 +01:00
Ramana Kumar 7b607aebab
Update README 2022-10-19 22:34:52 +01:00
Ramana Kumar 14d5c8e6f8
Initial work on switch to new simplified API 2022-10-19 22:31:14 +01:00
Ramana Kumar db402fcdd4
Update gitignore 2022-10-10 23:32:41 +01:00
Ramana Kumar 682ffb59d5
Bring DllImport types and ckzg.c into alignment 2022-10-10 23:28:29 +01:00
Ramana Kumar 5c90a4e5a0
Change evaluate_polynomial_in_evaluation_form interface 2022-10-10 23:21:05 +01:00
Ramana Kumar dd242cd93c
Merge pull request #1 from flcl42/add-csharp-side-impls-as-tests
Add C# related files, rename dir, add impls
2022-10-10 23:11:06 +01:00
Alexey Osipov 9e98b13a2a Add C# related files, rename dir, add impls 2022-10-11 01:00:07 +03:00
Ramana Kumar 620086ca4d
Remove vector_lincomb_indirect 2022-10-10 22:39:38 +01:00
Ramana Kumar 0797b932c5
Implement vector_lincomb wrapper 2022-10-10 21:56:57 +01:00
Ramana Kumar af4832c585
Update C# interface
not fully implemented or tested yet
2022-10-10 20:12:31 +01:00
Ramana Kumar dc152f4238
Forgot to pass polynomial length
Got lucky that the tests worked anyway with a random uninitialised n
before.
2022-10-07 07:28:50 +01:00
Ramana Kumar 0b5db6413e
Ensure evaluation test success is non-trivial 2022-10-07 00:52:31 +01:00
Ramana Kumar 61a43c95a2
Add evaluate_polynomial_in_evaluation_form to C# 2022-10-07 00:45:42 +01:00
Ramana Kumar 6083d09d29
Add bytes_from_bls_field to interface 2022-10-07 00:28:20 +01:00
Ramana Kumar d453296005
Add some verify proof tests in csharp
The numbers here are based on the Python tests
2022-10-05 23:35:43 +01:00
Ramana Kumar 534533061a
Fix free_trusted_setup 2022-10-05 21:33:16 +01:00
Ramana Kumar ba44d9e35c
Remove swig 2022-10-05 20:11:35 +01:00
Ramana Kumar d50adb8086
Add verify_kzg_proof and load_trusted_setup for C# 2022-10-05 20:04:35 +01:00
Ramana Kumar 989797c254
Add error checking to bytes_to_g1 2022-10-05 20:04:04 +01:00
Ramana Kumar f0f72d3fd1
Add bytes_to_g1 to the interface 2022-10-05 19:33:27 +01:00
Ramana Kumar b3d550d1a3
Add some more to the csharp interface 2022-10-04 22:40:18 +01:00
Ramana Kumar f5e95c497c
Start investigating swigless csharp 2022-10-04 19:45:12 +01:00
Ramana Kumar 9512abbcfc
Remove debugging print 2022-10-04 07:47:31 +01:00
Ramana Kumar 97fc4762d6
Add test that verification fails at wrong value 2022-10-04 07:47:13 +01:00
Ramana Kumar e60b5c2d77
Run both tests by default 2022-10-04 07:42:42 +01:00
Ramana Kumar a66f39f2a2
Remove python swig stuff 2022-10-04 07:40:51 +01:00
Ramana Kumar f3e7534662
Fix bug in compute_kzg_proof 2022-10-04 07:35:52 +01:00
Dankrad Feist 5195d9be55
Add pyecc test for proof 2022-10-04 00:50:05 +01:00
Dankrad Feist 2e435a7e26
Add py_ecc tests to min-bindings 2022-10-04 00:41:24 +01:00
Ramana Kumar 67804099bc
Add a simple test of polynomial evaluation
The values are taken from one of the simple tests in bindings/python
2022-10-03 22:04:55 +01:00