-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] Support full DID Syntax in CoreDID #1299
Comments
Hi @daniel-mader, unfortunately the error comes from the crate did-url. I'm not sure we can quickly fix it. I will take a closer look. |
The |
@daniel-mader I forked and fixed [patch.crates-io]
did_url = { git = "https://github.com/iotaledger/did_url.git" } We should be able to get ownership of that crate eventually, but for now this should get you going. |
Thank you @UMR1352! I replaced the dependency as you described and I now got this in my [[package]]
name = "did_url"
version = "0.1.0"
source = "git+https://github.com/iotaledger/did_url.git#985e6179644db6c238228175c30883ef8b957840"
dependencies = [
"form_urlencoded",
"serde",
] This looks correct to me, I also ran However, I still get the |
@daniel-mader you are right, |
@daniel-mader I fixed it, but unfortunately we can't merge it into
Keep #1303 monitored, either we get ownership of |
Thanks for the quick fix! I can verify it works for my use case! 🥳 I set the dependency like so: identity_iota = { git = "https://github.com/iotaledger/identity.rs.git", branch = "bug/did-url-par-encoding" } (Your suggestion somehow didn't work for me, I got a I also assume that I do not need the |
My bad, I wrote the snipped without actually trying it. Glad you could make it work anyway.
Exactly, in that branch the library uses |
Description
When implementing a custom resolver for the
did:web
method, one is required to pass aCoreDID
to theresolve()
function. According to the spec of did:web, one needs to percent-encode the method-specific identifier to prevent the port from being interpreted as another method delimiter, for example:did:web:localhost%3A12345
.However, when calling
CoreDID::parse("did:web:localhost%3A12345")
, I am getting anInvalidMethodId
error.I do not see any conflict in supporting this as percent-encoding is part of the official DID Syntax.
Motivation
Allow implementation of resolver for
did:web
.Requirements
did:web
to a validCoreDID
.Open questions (optional)
n/a
Are you planning to do it yourself in a pull request?
No
Tasks
The text was updated successfully, but these errors were encountered: