Commit Graph

9551 Commits

Author SHA1 Message Date
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
Alex Stokes b02be79a05
Merge pull request #3680 from ethereum/validator-guide-aggregate
Use validator guide `compute_on_chain_aggregate` in testing
2024-04-17 14:07:53 -06:00
Alex Stokes da0667b3b3
Merge pull request #3682 from mkalinin/fix-churn-updates
EIP-7251: Fix off-by-one in churn computations
2024-04-17 14:01:27 -06:00
Alex Stokes 4e0a879e19
Merge pull request #3687 from ethereum/bump-version
Update VERSION.txt to 1.5.0-alpha.0
2024-04-17 13:48:06 -06:00
Alex Stokes 714c54af7b
Merge pull request #3681 from ethereum/electra-testgen
Fix electra tests and enable testgen
2024-04-17 13:47:16 -06:00
Hsiao-Wei Wang b2fe919512
Update VERSION.txt to 1.5.0-alpha.0 2024-04-18 00:56:44 +08:00
Mikhail Kalinin 040f3f1f22 Fix off-by-one in churn computations 2024-04-17 18:18:59 +06:00
Hsiao-Wei Wang b290ec7d0c
fix `test_top_up_and_partial_withdrawable_validator`: set different expected value for post-electra 2024-04-17 18:44:01 +08:00
Hsiao-Wei Wang 2ecbe194f7
Delete duplicate deposit tests and enable testgen 2024-04-17 18:43:55 +08:00
Hsiao-Wei Wang e6e7c92eca
weird fix 2024-04-17 15:46:22 +08:00
Hsiao-Wei Wang af9b5d916a
Use validator guide `compute_on_chain_aggregate` in testing 2024-04-17 14:32:54 +08:00