Commit Graph

31 Commits

Author SHA1 Message Date
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 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 14d5c8e6f8
Initial work on switch to new simplified API 2022-10-19 22:31:14 +01: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 6083d09d29
Add bytes_from_bls_field to interface 2022-10-07 00:28:20 +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 9512abbcfc
Remove debugging print 2022-10-04 07:47:31 +01:00
Ramana Kumar f3e7534662
Fix bug in compute_kzg_proof 2022-10-04 07:35:52 +01:00
Ramana Kumar 48634ea975
Delete unused variable 2022-10-03 20:54:31 +01:00
Dankrad Feist b611c51874
Fix some errors with rbo 2022-10-03 19:35:34 +01:00
Ramana Kumar 3c5312cbb3
Remove unnecessary function from interface 2022-10-02 23:34:57 +01:00
Ramana Kumar c6c4f7d5f6
Wrap g1_lincomb 2022-10-02 12:59:54 +01:00
Ramana Kumar aab3df643b
Use pointers for scalars too 2022-10-02 12:09:01 +01:00
Ramana Kumar 2281cce711
Use array of pointers for vector_lincomb
This seems more likely to avoid copying field elements when interfacing
from high-level languages (we still have to store the pointers though).

If this is the right move, the same could be done for
blob_to_kzg_commitment, and maybe others that read sequences.
2022-10-02 11:29:23 +01:00
Ramana Kumar c56461e3a5
Non-contiguous array in min-src 2022-10-01 17:07:41 +01:00
Ramana Kumar 8f6bc22b2f
Avoid exposing blst scalar 2022-10-01 12:42:44 +01:00
Ramana Kumar 9897fb2fa9
Probably need to bytes48 from g1 in the interface 2022-10-01 11:50:21 +01:00
Ramana Kumar cfa9675512
Fix implementation of compute_powers 2022-09-29 22:23:14 +01:00
Ramana Kumar 24212039b2
Add conversions to/from uint64s to the interface 2022-09-29 19:32:23 +01:00
Ramana Kumar 8a072d68ba
Add alloc_polynomial and free_polynomial 2022-09-27 22:05:52 +01:00
Ramana Kumar 9b46788ac7
Finish adding implementation, simplify Makefile 2022-09-27 21:50:48 +01:00
Ramana Kumar 265e60c2db
Implement a few more functions 2022-09-27 18:36:45 +01:00
Ramana Kumar a9ef9a893a
Add a few more implementations 2022-09-27 18:25:43 +01:00
Ramana Kumar 4488ad3269
Start on a consolidated 4844-only copy of the code 2022-09-27 18:11:37 +01:00