-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vidpf: Remove
eval_with_cache()
, limit eval()
to testing
Mastic uses `eval_prefix_tree_with_siblings()`. This method caches the prefix tree just like `eval_with_cache()` does, but it doesn't try to compute the onehot proof. It also concatenates the weight shares into the output shares for us. The only other use case for `eval_with_cache()` is for computing the shares of beta during sharding. Replace this code with a simpler implementation and remove `eval_with_cache()`. Finally, fence `eval()` by the `cfg(test)` attribute. It's useful for testing, but its not part of the actual specification.
- Loading branch information
Showing
2 changed files
with
39 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters