You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SmallRangeProof is strictly worse than LargeRangeProof if the given range is large. We should make it easy for the user to avoid misuse of SmallRangeProof.
Proposed solution
Add another impl of PayloadProver that intelligently selects the proof type based on the user's input. The return type would be an enum with Small and Large variants. The existing impls for Small and Large remain as-is so that the user retains the ability to enforce a preference for Small or Large.
The text was updated successfully, but these errors were encountered:
Based on Originally posted by @ggutoski in #438 (comment)
Problem
SmallRangeProof
is strictly worse thanLargeRangeProof
if the given range is large. We should make it easy for the user to avoid misuse ofSmallRangeProof
.Proposed solution
Add another impl of
PayloadProver
that intelligently selects the proof type based on the user's input. The return type would be an enum withSmall
andLarge
variants. The existing impls forSmall
andLarge
remain as-is so that the user retains the ability to enforce a preference forSmall
orLarge
.The text was updated successfully, but these errors were encountered: