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

Check starting value instead of computed value #1100

Closed
wants to merge 1 commit into from

Conversation

richardpringle
Copy link
Member

@richardpringle richardpringle commented Mar 18, 2025

I thought the first example was a little counter-intuitive. You have to perform the computation once with the app and once outside the app to check the result. Now, the app will square the value if you supply the current state.

Copy link

vercel bot commented Mar 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2025 11:27pm

@45930
Copy link
Contributor

45930 commented Mar 19, 2025

I think the example as-written is sort of meant to shift your thinking from "I'll supply inputs to a function" to "I'll supply outputs and a proof to a verifier". So "I know three squared, and here's the proof" is the idea. Perhaps it's so trivial that it doesn't land correctly, but I don't love the fix either. Maybe we should go back to the drawing board on what the hello world is for o1js.

@richardpringle
Copy link
Member Author

Had a great conversation with @45930 offline. No need to land this change, closing.

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