-
Notifications
You must be signed in to change notification settings - Fork 11
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 return value accessor to assigner #217
Comments
@akokoshn @CblPOK-git |
We create all issues related to submodules in the zkllvm repository if I'm right |
It is basically uint256, works fine with pallas, but bls12381 has bit length of 381, need to use extended_integral_type which is something like uint4096. |
For now only a partial implementation, which does not handle complicated cases with aggregated return types (just like it is done in printing output). The rest of implementation will be covered in |
After successful evaluation assigner has a return value of circuit function, which now can be printed to stdout (see
print_format
). However we cannot access this value from API now. It will be nice for users and really helpful for testing assigner.I suggest we add public method
get_return_value
:BlueprintFieldType::integral_type
here allows to return single value for non-native fields (at least as I understood it);If the function is called not after successful evaluation, result must be undefined (probably empty).
The text was updated successfully, but these errors were encountered: