Skip to content
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

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

goncalo-frade-iohk
Copy link
Contributor

Fixes ATL-2606

@goncalo-frade-iohk goncalo-frade-iohk requested review from a team and CryptoKnightIOG December 5, 2022 15:37
@github-actions
Copy link

github-actions bot commented Dec 5, 2022

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ REPOSITORY checkov yes no 9.7s
✅ REPOSITORY dustilock yes no 0.02s
✅ REPOSITORY gitleaks yes no 2.96s
✅ REPOSITORY git_diff yes no 0.01s
✅ REPOSITORY secretlint yes no 1.06s
✅ REPOSITORY syft yes no 0.58s

See errors details in artifact MegaLinter reports on CI Job page
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

Copy link

@FabioPinheiro FabioPinheiro left a comment

Choose a reason for hiding this comment

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

LGTM

/// - Parameter string: DID String
public init(string: String) throws {
var aux = string.components(separatedBy: ":")
guard aux.count > 3 else { throw CastorError.invalidDIDString }

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

Copy link
Contributor Author

@goncalo-frade-iohk goncalo-frade-iohk Dec 7, 2022

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Copy link

@rodolfomiranda rodolfomiranda left a comment

Choose a reason for hiding this comment

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

Looks good!

@goncalo-frade-iohk goncalo-frade-iohk merged commit ab3a2dc into main Dec 7, 2022
@goncalo-frade-iohk goncalo-frade-iohk deleted the feature/ATL-2606 branch December 7, 2022 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants