Commit Graph

288 Commits

Author SHA1 Message Date
dancoffman d478234491
Revert changes that were only to make SWIG work 2022-11-02 13:30:19 -07:00
dancoffman b169d4ab6e
Remove SWIG 2022-11-02 13:27:00 -07:00
dancoffman 40db00f643
Add napi version 2022-11-02 13:21:41 -07:00
dancoffman fdcab9d035
Install node-gyp with yarn 2022-11-01 22:22:14 -07:00
dancoffman 002fc3fa54
Tweaks 2022-11-01 21:58:21 -07:00
dancoffman 203033613f
I learned about extern C 2022-11-01 21:39:04 -07:00
dancoffman 2846d0b470
checkpoint 2 2022-11-01 19:40:28 -07:00
dancoffman 354281a9d8
Checkpoint 2022-11-01 17:56:34 -07:00
dancoffman 6ec86af547
Generate bindings using SWIG and node-gyp 2022-11-01 15:00:00 -07:00
dancoffman a581964b11
Working node-gyp 2022-11-01 12:56:38 -07: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