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

Address Double Satisfaction Vulnerability of Multi UTxO Indexers #4

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

keyan-m
Copy link
Contributor

@keyan-m keyan-m commented Apr 17, 2024

Thanks to @solidsnakedev for spotting this error, this PR adds extra validations to make sure the same number of script inputs are being spent as there are input indices provided in the redeemer.

Additionally, the one-to-many variants' collective_output_validator functions are now provided with the total count of outputs (aside from the list of outputs). This has little extra cost, while if users required this value, it'd cost them one additional traversal to attain.

Also enhanced the one-to-many variants so that their
`collective_output_validator`s are also provided with the output counts.
@keyan-m keyan-m marked this pull request as ready for review April 17, 2024 00:29
@solidsnakedev solidsnakedev merged commit 8c722d5 into main Apr 17, 2024
1 check passed
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