Skip to content

Commit

Permalink
chore: add AssertionMethod to profile (#1423)
Browse files Browse the repository at this point in the history
Signed-off-by: Firas Qutishat <[email protected]>
  • Loading branch information
fqutishat authored Sep 13, 2023
1 parent ad1d015 commit 6498c5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions component/profile/reader/file/creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ func (c *Creator) createDID(
Relationship: did.Authentication,
Embedded: true,
}},
AssertionMethod: []did.Verification{{
VerificationMethod: *authentication,
Relationship: did.AssertionMethod,
Embedded: true,
}},
}

keys := [2]interface{}{}
Expand Down Expand Up @@ -246,6 +251,11 @@ func (c *Creator) ionDID(
Relationship: did.Authentication,
Embedded: true,
}},
AssertionMethod: []did.Verification{{
VerificationMethod: *vm,
Relationship: did.AssertionMethod,
Embedded: true,
}},
}

if difDidOrigin != "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/service/oidc4vp/oidc4vp_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (s *Service) extractClaimData(
opts := []presexch.MatchOption{
presexch.WithCredentialOptions(
verifiable.WithDataIntegrityVerifier(diVerifier),
verifiable.WithExpectedDataIntegrityFields(crypto.Authentication, "", ""),
verifiable.WithExpectedDataIntegrityFields(crypto.AssertionMethod, "", ""),
verifiable.WithJSONLDDocumentLoader(s.documentLoader),
verifiable.WithPublicKeyFetcher(verifiable.NewVDRKeyResolver(s.vdr).PublicKeyFetcher())),
presexch.WithDisableSchemaValidation(),
Expand Down

0 comments on commit 6498c5b

Please sign in to comment.