Skip to content

poly-commitment: make multi_scalar_mul generic over Borrow#3485

Draft
dannywillems wants to merge 1 commit intomasterfrom
dw/multi-scalar-mul-slice
Draft

poly-commitment: make multi_scalar_mul generic over Borrow#3485
dannywillems wants to merge 1 commit intomasterfrom
dw/multi-scalar-mul-slice

Conversation

@dannywillems
Copy link
Copy Markdown
Contributor

Change multi_scalar_mul to accept &[B] where B: Borrow, allowing callers to pass both &[PolyComm] and &[&PolyComm] directly. This eliminates redundant Vec<&PolyComm> allocations at call sites that already own their data.

Change multi_scalar_mul to accept &[B] where B: Borrow<Self>,
allowing callers to pass both &[PolyComm<G>] and &[&PolyComm<G>]
directly. This eliminates redundant Vec<&PolyComm> allocations at
call sites that already own their data.
@dannywillems dannywillems marked this pull request as draft February 7, 2026 22:43
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.

1 participant