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

Add feature-gated runtime assertions to stdlib functions #6964

Open
michaeljklein opened this issue Jan 6, 2025 · 0 comments
Open

Add feature-gated runtime assertions to stdlib functions #6964

michaeljklein opened this issue Jan 6, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@michaeljklein
Copy link
Contributor

Problem

Once #6963 (feature flags) is merged:

Several stdlib functions, e.g. embedded_curve_add make assumptions about their inputs (in this case, that the input points are on the curve), but it is prohibitively tedious to add checks that all inputs of embedded_curve_add are on the curve.

Happy Case

Add a runtime_pedantic or similar feature flag to the stdlib that enables runtime checks on each stdlib function/method that includes requirements on its inputs that can only be checked at run-time, a la #6962.

Workaround

Yes

Workaround Description

Explicitly add such run-time checks whenever using a stdlib function whose input-assumptions can only be checked at run-time.

Additional Context

No response

Project Impact

Nice-to-have

Blocker Context

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant