-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat(pollux): add verifiable credentials #52
Conversation
🦙 MegaLinter status: ✅ SUCCESS
See errors details in artifact MegaLinter reports on CI Job page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Domain/Sources/Models/DID.swift
Outdated
/// - Parameter string: DID String | ||
public init(string: String) throws { | ||
var aux = string.components(separatedBy: ":") | ||
guard aux.count > 3 else { throw CastorError.invalidDIDString } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should have three-part but I'm not sure you can split by ':'. (the first must be 'did' and the second part is the method. But the three-part is evening even without a '#')
However, I think I do the same thing in some places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this is not the preferred way. I added a comment saying that.
There can be methodId with :
in the middle. So this code can actually produce more than 3.
But yeah after your comment I noticed it needs to be >= 3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Fixes ATL-2606
4bb90db
to
515f3f4
Compare
Fixes ATL-2606