9352 Commits

Author SHA1 Message Date
Kevaundray Wedderburn
941d9a9476 trigger CI again 2024-04-23 13:55:23 +01:00
Kevaundray Wedderburn
5a74f40442 g2_lincomb uses g2_multi_exp 2024-04-23 13:38:27 +01:00
Kevaundray Wedderburn
e7e49ec71a lint fixes 2024-04-23 13:38:14 +01:00
Kevaundray Wedderburn
6aa950e1dd add g2_multi_exp and lint fixes 2024-04-23 13:38:04 +01:00
Hsiao-Wei Wang
57c14e5400
Add get_custody_columns tests 2024-04-23 20:21:33 +08:00
Kevaundray Wedderburn
640675f628 add g1_multi_exp 2024-04-23 12:44:50 +01:00
Justin Traglia
73637c84b2
EIP-7594: Add asserts for public functions (#3684)
* Add length asserts for public PeerDAS functions

* Fix cell asserts

* Rename field variable to satisfy linter

* Add asserts for row/column indices

* Use CELLS_PER_EXT_BLOB

* Update to work with new spec changes

* Fix indentation

* Add explict check for cell_id
2024-04-23 12:12:26 +03:00
EchoAlice
b52182cdd6 Refactor upgrade_to_electra() 2024-04-22 13:31:37 -06:00
kevaundray
e51f7df77d
chore: make list copy explicit in divide_polynomialcoeff (#3706) 2024-04-22 10:43:04 -05:00
George Kadianakis
4fceca2b75
Merge pull request #3710 from kevaundray/kw/rm-field-elements-from-das-core
chore: use CELLS_PER_EXT_BLOB to compute the number of columns
2024-04-22 17:59:31 +03:00
Justin Traglia
bcd0a09e68
Integrate new Coset/CosetEvals types (#3701)
* Add CellBytes type

* Use ByteVector, not Vector

* Fix tests

* Replace b"" with []

* Apply suggestions for bytes_to_cell

* Add/integrate new CosetEvals type

* Remove accidental new line

* Fix recover_all_cells

* Fix recover_matrix

* fix CosetEvals abstraction leak

* Introduce internal Coset type for `coset_for_cell()`

* Use CosetEvals in compute_kzg_proof_multi_impl()

* update test

* satisfy linter

* Fix two nits I noticed

---------

Co-authored-by: Kevaundray Wedderburn <kevtheappdev@gmail.com>
Co-authored-by: George Kadianakis <desnacked@riseup.net>
2024-04-22 17:03:57 +03:00
Kevaundray Wedderburn
79d255b15a use CELLS_PER_EXT_BLOB in das-core 2024-04-22 14:08:44 +01:00
kevaundray
5c561722b8
add BLS_MODULUS to places where we subtract two integers (#3709) 2024-04-22 15:57:52 +03:00
George Kadianakis
858f51617d
Merge pull request #3708 from kevaundray/kw/hww-max-extended-matrix-size
chore: add a new config `MAX_EXTENDED_MATRIX_SIZE`
2024-04-22 15:56:51 +03:00
Kevaundray Wedderburn
3f2d498cee rename 2024-04-22 13:02:42 +01:00
George Kadianakis
0ffd0ca432
Merge pull request #3703 from kevaundray/kw/add-comment-for-verify-kzg
chore: Add more docs for the kzg verify algorithm
2024-04-22 12:46:12 +03:00
Hsiao-Wei Wang
e46c4c39fb workaround: add a new config MAX_EXTENDED_MATRIX_SIZE to avoid class Container(List[c, a*b]) 2024-04-22 10:31:58 +01:00
Kevaundray Wedderburn
dca048d8df push @asn-d6 suggestions 2024-04-22 09:57:58 +01:00
kevaundray
0e4fc984ef
Remove unused return value (#3704) 2024-04-19 20:16:19 -05:00
terence
22a9c726ec
Fix ExecutionLayerWithdrawalRequest container to also imply it's for EIP7002 2024-04-19 16:30:04 -07:00
Kevaundray Wedderburn
4684c5748c add comment for verify algorithm 2024-04-19 19:19:17 +01:00
Justin Traglia
bc69c357b4
Merge pull request #3702 from kevaundray/kw/fix_recover_polynomial
Change `recover_polynomial` to `recover_all_cells`
2024-04-19 12:54:21 -05:00
Justin Traglia
927984894a
Merge pull request #3696 from kevaundray/kw/optimize-compute-kzg-proof-multi 2024-04-19 12:51:58 -05:00
Justin Traglia
8707a4c2c1 Fix test_recover_all_cells 2024-04-19 11:18:11 -05:00
Kevaundray Wedderburn
988412ec2c modify test 2024-04-19 12:53:47 +01:00
Kevaundray Wedderburn
3ddd00e741 use recover_all_cells 2024-04-19 12:50:32 +01:00
Kevaundray Wedderburn
32cbda9de2 rename to recover_all_cells 2024-04-19 12:50:22 +01:00
Kevaundray Wedderburn
33dfa88160 fix bad merge 2024-04-19 12:07:58 +01:00
Kevaundray Wedderburn
c2b7c0b414 Merge branch 'dev' into kw/optimize-compute-kzg-proof-multi 2024-04-19 12:04:15 +01:00
Hsiao-Wei Wang
9c04cf13c9
Merge pull request #3695 from kevaundray/kw/fix-kzg-multi-comment
chore: Fixes and elaborates on comments for `compute_kzg_proof_multi`
2024-04-19 15:32:09 +09:00
Hsiao-Wei Wang
0b312cae8b
Merge pull request #3692 from kevaundray/patch-11
chore: Change g2_lincomb to take in G2Points
2024-04-19 15:30:22 +09:00
Hsiao-Wei Wang
b8eab833ca
Merge pull request #3694 from kevaundray/kw/cells_per_ext_blob
chore!: Renames `CELLS_PER_BLOB` to `CELLS_PER_EXT_BLOB`
2024-04-19 15:28:41 +09:00
kevaundray
8e3500b2b5
Update specs/_features/eip7594/polynomial-commitments-sampling.md
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
2024-04-18 20:26:52 +01:00
kevaundray
1669723adf
Update specs/_features/eip7594/polynomial-commitments-sampling.md
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
2024-04-18 20:26:46 +01:00
Kevaundray Wedderburn
b06d431eb6 fix lint 2024-04-18 18:28:10 +01:00
Kevaundray Wedderburn
c9e1291860 update tests 2024-04-18 18:14:32 +01:00
Kevaundray Wedderburn
6c8955d4bc chore: fix comment 2024-04-18 18:12:15 +01:00
Kevaundray Wedderburn
912038bb08 modify cell proofs comment 2024-04-18 18:11:41 +01:00
Kevaundray Wedderburn
4d073f10a2 remove remainder polynomial when in monomial form 2024-04-18 18:00:01 +01:00
Kevaundray Wedderburn
d913140164 fix comments for kzg_proof_multi 2024-04-18 17:52:33 +01:00
Kevaundray Wedderburn
7e85c962f2 change CELLS_PER_BLOB in das-core.md 2024-04-18 17:40:51 +01:00
Kevaundray Wedderburn
3b889645ff number of cells in an extended blob 2024-04-18 17:38:04 +01:00
kevaundray
45e70747bb
Update polynomial-commitments-sampling.md 2024-04-18 15:02:30 +01:00
Hsiao-Wei Wang
7bf43d1bc4
Merge pull request #3675 from ethereum/dev
release v1.5.0-alpha.0
2024-04-18 19:34:58 +09:00
Hsiao-Wei Wang
477fa0e3ca
Merge pull request #3691 from ethereum/fix-tests
Fix tests
2024-04-18 18:22:18 +09:00
Hsiao-Wei Wang
313ed1a962
Fix tests 2024-04-18 17:15:43 +08:00
Alex Stokes
815485b48d
Merge pull request #3690 from fradamt/dev
Fix broken exit tests due to change in the churn computation
2024-04-17 18:09:29 -06:00
Alex Stokes
6845546f6e
Merge pull request #3679 from ralexstokes/electra/restore-partial-withdrawals-handling
Electra:EIP-7002/7251: clarify pending partial withdrawals handling
2024-04-17 18:09:13 -06:00
fradamt
715e754ba3 Fix off-by-one error in exit tests due to change in the churn computation 2024-04-17 23:47:34 +02:00
Alex Stokes
82133085a1
clarify pending partial withdrawals handling 2024-04-17 14:17:07 -06:00