Skip to content
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

Coll.distinct method removed #1052

Open
wants to merge 4 commits into
base: v6.0.0
Choose a base branch
from
Open

Coll.distinct method removed #1052

wants to merge 4 commits into from

Conversation

kushti
Copy link
Member

@kushti kushti commented Jan 14, 2025

In this PR, coll.distinct method, earlier introduced in 6.0.0 candidate, has been removed, as it may be used for DoS attacks, see #1051 for details. Another alternative was to use type-based recursive cost evaluation like done in DataSerializer, but removing is simpler, and in case of need distinct check can be done in ErgoScript for small collections.

Close #1051

@kushti kushti changed the title Fix for possible DoS vector using .distinct and GroupElement Coll.distinct method removed Jan 17, 2025
@kushti kushti requested a review from aslesarenko January 20, 2025 14:33
@aslesarenko
Copy link
Member

@kushti I commented on #1051, let me know if you still want to go with removing.

@kushti
Copy link
Member Author

kushti commented Jan 21, 2025

@kushti I commented on #1051, let me know if you still want to go with removing.

The issue still exists, see comments @SethDusek and mine, so removal is needed I guess

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