Skip to content

Conversation

@ilya-korotya
Copy link
Contributor

No description provided.

@ilya-korotya ilya-korotya marked this pull request as ready for review September 15, 2025 19:59
@ilya-korotya ilya-korotya requested a review from olomix September 15, 2025 20:00
AssertionMethod []Authentication `json:"assertionMethod,omitempty"`
Authentication []Authentication `json:"authentication,omitempty"`
KeyAgreement []interface{} `json:"keyAgreement,omitempty"`
KeyAgreement []Authentication `json:"keyAgreement,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

backward compatibility has beed broken

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vmidyllic we have to discuss this.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should not break it, cast it where you need if you can

Copy link
Contributor

Choose a reason for hiding this comment

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

We should not break it, cast it where you need if you can

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, break it. it wan't used

vmidyllic
vmidyllic previously approved these changes Sep 16, 2025
AssertionMethod []Authentication `json:"assertionMethod,omitempty"`
Authentication []Authentication `json:"authentication,omitempty"`
KeyAgreement []interface{} `json:"keyAgreement,omitempty"`
KeyAgreement []Authentication `json:"keyAgreement,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

ok, break it. it wan't used


func (d *DIDDocument) resolveToVM(items []Authentication) (CommonVerificationMethods, error) {
vms := make(CommonVerificationMethods, 0, len(items))
for _, auth := range d.Authentication {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should iterate over items, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thx a lot. Fixed

olomix
olomix previously approved these changes Sep 16, 2025
olomix
olomix previously approved these changes Sep 16, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request implements a draft filtering system for DID document verification methods. The implementation adds functionality to resolve, filter, and manage verification methods from DID documents.

  • Adds verification method resolution for Authentication, AssertionMethod, and KeyAgreement sections
  • Implements a filtering system with options for ID, Type, Controller, JWK Type, and JWK Algorithm
  • Introduces a method to collect all verification methods from a DID document with deduplication

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
verifiable/did_doc.go Core implementation of verification method resolution, filtering, and collection functionality
verifiable/did_doc_test.go Comprehensive test suite covering all new functionality including edge cases and error scenarios
.golangci.yml Updated linter configuration to use golangci-lint v2 format
.github/workflows/ci-test.yaml Updated action versions for CI test workflow
.github/workflows/ci-lint.yaml Modernized CI lint workflow to use golangci-lint action

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ilya-korotya ilya-korotya changed the title draft of filter implementation Filter for did document Sep 17, 2025
@ilya-korotya ilya-korotya merged commit 23585f6 into main Sep 17, 2025
6 checks passed
@ilya-korotya ilya-korotya deleted the feature/add-verification-method-resolvers branch September 17, 2025 14:16
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