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
These caveats make assumptions about the whole structure of the macaroon (eg they assert the presence of other caveats).
A verifier for these caveats needs access (in addition to the current caveat) to the whole caveats list.
This is already possible to have this kind of caveats by making the verifier close over the caveats list extracted from the macaroon:
@jtanguy has proposed a solution to avoid this separation between regular and structural verifiers by always providing the full list of caveats to verifiers, eg with a zipper (actually, we'd need a non empty zipper, since we need at least the current caveat.
Pros of the non empty zipper approach :
no need to manually close over the caveats list for structural verifiers
less clunky way to exploit the caveats order (it's significant) than with the whole list and the current caveat
Cons of the non empty zipper approach :
added complexity
structural verifiers are an advanced topic with macaroons, and a verifier verifying several caveats
at the same time is usually a bad idea, so I fear it would encourage people to depart from common macaroon idioms without realizing it.
The text was updated successfully, but these errors were encountered:
These caveats make assumptions about the whole structure of the macaroon (eg they assert the presence of other caveats).
A verifier for these caveats needs access (in addition to the current caveat) to the whole caveats list.
This is already possible to have this kind of caveats by making the verifier close over the caveats list extracted from the macaroon:
@jtanguy has proposed a solution to avoid this separation between regular and structural verifiers by always providing the full list of caveats to verifiers, eg with a zipper (actually, we'd need a non empty zipper, since we need at least the current caveat.
Pros of the non empty zipper approach :
Cons of the non empty zipper approach :
at the same time is usually a bad idea, so I fear it would encourage people to depart from common macaroon idioms without realizing it.
The text was updated successfully, but these errors were encountered: