Skip to content

[do not merge] feat(bindings): asyncAggregateWithRandomness by indices - #561

Closed
spiral-ladder wants to merge 2 commits into
mainfrom
bing/aggregate-by-index
Closed

[do not merge] feat(bindings): asyncAggregateWithRandomness by indices#561
spiral-ladder wants to merge 2 commits into
mainfrom
bing/aggregate-by-index

Conversation

@spiral-ladder

Copy link
Copy Markdown
Member

No description provided.

… index

BREAKING: sets change shape from {pk: PublicKey, sig} to {index, sig}.
Public keys resolve from the process-wide pubkey cache on the JS thread
during setup, so callers skip the per-set getOrThrow and PublicKey object
crossing on the gossip attestation path. The aggregation math (parallel
Pippenger MSM on the BLS pool) is unchanged; the old by-object plumbing
in blst.zig is replaced by bindings/napi/aggregate_by_index.zig.

Unknown validator indices throw PubkeyIndexNotFound synchronously —
matching the previous behavior where the caller's getOrThrow threw.
The synchronous aggregateWithRandomness keeps its by-object shape as
the generic primitive for arbitrary (non-registry) keys.

@twoeths twoeths left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as a library, we can define a completely new api for this and let lodestar decide

A scripted edit double-applied an import replacement, leaving duplicate
identifiers that failed biome ci with parse errors.
@spiral-ladder

spiral-ladder commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

as a library, we can define a completely new api for this and let lodestar decide

yeah agree, this is just to show the diff

@spiral-ladder spiral-ladder changed the title feat(bindings): asyncAggregateWithRandomness by indices [do not merge] feat(bindings): asyncAggregateWithRandomness by indices Aug 13, 2026
@spiral-ladder

Copy link
Copy Markdown
Member Author

now that we fully switched to native verification in #562 we no longer need async agg with randomness, closing

@github-project-automation github-project-automation Bot moved this from In Progress to Done in Lodestar Team Coordination Aug 18, 2026
@spiral-ladder
spiral-ladder deleted the bing/aggregate-by-index branch August 18, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants