Since path should always start with / we can validate that this is the case and return a helpful error before an incorrect signature or incorrect verify usage ends in an opaque error.
E.g. trying to use the whole url .path("https://example.com/foo"). We could produce something like an error invalid path "https://example.com/foo" must start with '/'.
We can use the full url scenario as a new test for signing & verifying in all langs.
Checklist:
Since path should always start with
/we can validate that this is the case and return a helpful error before an incorrect signature or incorrect verify usage ends in an opaque error.E.g. trying to use the whole url
.path("https://example.com/foo"). We could produce something like an errorinvalid path "https://example.com/foo" must start with '/'.We can use the full url scenario as a new test for signing & verifying in all langs.
Checklist: