Skip to content

Rust Bindings: Replacing slices of references to iterators of references for aggregation #198

Description

@Coca162

Currently, functions like aggregate require a slice of references as input, however these functions do not necessarily require a slice and can be easily changed to accept any iterator instead. I'd be interested in making a PR for this where AggregatePublicKey and AggregateSignature's aggregation functions replace &[&[T] with impl IntoIterator<Item = &T>. This would require some users of the library to change code, but allows them to avoid allocating to a vector, providing a performance benefit and simplifying code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions