This introduces some tests to models/capability_indexing.rs including a test that would've failed previously.
Previously we returned any UCANs that match up via issuer/audience, irrespective of whether they refer to each other in the prf array or whether they talk about the same capability.
Now, we make sure that they're talking about exactly the same resource (in the capability).
This needs to be improved in the future to also check for e.g. the ucan:<...> scheme, unless UCAN 1.0 comes out first.
We don't actually make use of the prf array, anticipating its deprecation in UCAN 1.0.
This introduces some tests to
models/capability_indexing.rs
including a test that would've failed previously.Previously we returned any UCANs that match up via issuer/audience, irrespective of whether they refer to each other in the
prf
array or whether they talk about the same capability.Now, we make sure that they're talking about exactly the same resource (in the capability). This needs to be improved in the future to also check for e.g. the
ucan:<...>
scheme, unless UCAN 1.0 comes out first.We don't actually make use of the
prf
array, anticipating its deprecation in UCAN 1.0.