-
Notifications
You must be signed in to change notification settings - Fork 39
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
request: Drop wrapper type PublicInput
#311
Comments
There are good reasons why a dedicated type All that said, the points you raise should be addressed.
|
Fails: println!("standard input: {}", time_lock_witness.standard_input().iter().join(",")); also fails: println!("standard input: {}", time_lock_witness.standard_input()); |
5a52154 is the best of both worlds! |
The wrapper type
PublicInput
is generating a lot ofAs far as I can tell, it is a simple wrapper around
Vec<BFieldElement>
and nothing else, and adds no functionality. It does arguably add a level of type safety against misuse -- for instance, redirecting aProof
to function that takesPublicInput
generates an error. However, in my eyes the safety is not worth the hassle. I propose dropping the wrapper type altogether.(And before you ask, yes the confusion and errors are painful because my IDE is not fast enough (probably due to all the macros) to make good automatic suggestions fast.)
The text was updated successfully, but these errors were encountered: