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 example with ecdsa secp256r1 (prime256r1 / p256) verification #298

Closed
wants to merge 8 commits into from

Conversation

leighmcculloch
Copy link
Member

What

Add example with ecdsa secp256r1 (prime256r1 / p256) verification.

Why

To demonstrate how to use crypto libraries to do other forms of crypto in the guest side.

Thanks to @graydon for helping get me started on this.

Comment on lines 24 to 25
// Set an unlimited budget because it'll fail with the default budget.
env.budget().reset_unlimited();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When running the test_wasm it fails if the budget is the default budget, even if I reset the budget just before calling verify. I only seem to be able to get it to pass if I first reset to an unlimited budget. cc @graydon @tomerweller

@leighmcculloch
Copy link
Member Author

I may reopen again in the future with a copy of https://github.com/leighmcculloch/soroban-webauthn.

@leighmcculloch leighmcculloch deleted the secp256r1 branch February 22, 2024 23:02
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