Skip to content

Fix for CAI-10364#2168

Open
mpgopala wants to merge 1 commit into
mainfrom
mpgopala/cai-10364
Open

Fix for CAI-10364#2168
mpgopala wants to merge 1 commit into
mainfrom
mpgopala/cai-10364

Conversation

@mpgopala
Copy link
Copy Markdown
Contributor

  1. Gate localhost→HTTP to #[cfg(test)]
  2. Block IP literals in to_url()
  3. Pass a resolver parameter get_did_doc so that above two fixes are applied for did:web processing

Changes in this pull request

Give a narrative description of what has been changed.

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

1. Gate localhost→HTTP to #[cfg(test)]
2. Block IP literals in to_url()
3. Pass a resolver parameter get_did_doc so that above two fixes are applied for did:web processing
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 26, 2026

Merging this PR will not alter performance

✅ 30 untouched benchmarks
⏩ 64 skipped benchmarks1


Comparing mpgopala/cai-10364 (ec69c7e) with main (ae51936)

Open in CodSpeed

Footnotes

  1. 64 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Comment on lines +160 to +161
let _resolver = Context::new().resolver_async();
self.check_issuer_signature_async(&sign1, &ica_credential, _resolver.as_ref())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where the problem becomes tricky. The resolver here isn't actually the one passed in by the user with restrictions and such. In the reader we call a higher-level function that eventually boils down to here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants