Skip to content

Add HashSeq for feature parity with HashList#134

Merged
tersec merged 11 commits intomasterfrom
dev/etan/pl-cache
Jan 9, 2026
Merged

Add HashSeq for feature parity with HashList#134
tersec merged 11 commits intomasterfrom
dev/etan/pl-cache

Conversation

@etan-status
Copy link
Copy Markdown
Contributor

Add cached flavor for EIP-7916 progressive list (seq[T] in Nim) so that it has feature parity with regular list (List[T, N] in Nim). Name is HashSeq[T] to match HashList[T, N].

Implementation reuses existing caches, it reuses HashArray style cache for completed trees of the progressive forest, and then uses HashList style cache for the in-progress tree. Luckily, once complete it matches the cache format for HashArray and can simply be reused.

@etan-status etan-status force-pushed the dev/etan/pl-cache branch 2 times, most recently from 4d58a63 to 9984869 Compare January 8, 2026 16:23
@etan-status etan-status marked this pull request as draft January 8, 2026 16:23
Comment thread ssz_serialization/merkleization.nim Outdated
Add cached flavor for EIP-7916 progressive list (`seq[T]` in Nim) so
that it has feature parity with regular list (`List[T, N]` in Nim).
Name is `HashSeq[T]` to match `HashList[T, N]`.

Implementation reuses existing caches, it reuses `HashArray` style
cache for completed trees of the progressive forest, and then uses
`HashList` style cache for the in-progress tree. Luckily, once complete
it matches the cache format for `HashArray` and can simply be reused.
@etan-status etan-status marked this pull request as ready for review January 8, 2026 16:46
@tersec tersec merged commit 7ac7ba0 into master Jan 9, 2026
17 checks passed
@tersec tersec deleted the dev/etan/pl-cache branch January 9, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants