-
Notifications
You must be signed in to change notification settings - Fork 974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recover_cells_and_kzg_proofs
& matrix refactor
#3788
Conversation
Code looks good! BTW, why did you "Replace ExtendedMatrix and DataColumn types with MatrixEntry container."? It seems like this was not necessary. No strong opinion, just wondering. I kinda liked |
Good question. I actually wanted to keep the types, but ran into remerkable issues. I tried doing this: - List[Cell, MAX_CELLS_IN_EXTENDED_MATRIX]
+ List[Tuple[Cell, KZGProof], MAX_CELLS_IN_EXTENDED_MATRIX] And it had this error: Spent some time trying to fix it but couldn't figure it out. |
Hmm, might be worth looking into fixing this. Right now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this refactor!
- I don't have a strong feeling about making
ColumnIndex
an alias ofCelIID
by inheritance (8c4a42c). Probably not worth introducing a new hardcode in the spec builder? - +1 on renaming
CellID
toCellIndex
because they are consecutive numbers. If so, we can leave "ID" for the nonconsecutive identifiers likeNodeID
.
I don't have a strong opinion on this either. Maybe we should wait a little while and/or do it in a different PR.
Great, agreed! Unless you want me to do it here, I would like to do this in another PR. It'll be easy, just a lot of changes. |
recover_cells_and_kzg_proofs
& matrix refactor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks!
This PR does the following:
recover_all_cells
torecover_cells_and_kzg_proofs
.ExtendedMatrix
andDataColumn
types withMatrixEntry
container.cells_dict
with sequence ofMatrixEntry
values.