Skip to content

Commit

Permalink
update to pilygonid resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Jan 4, 2024
1 parent e8ef955 commit 03a2860
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions verifiable/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,9 @@ func resolveDIDDocumentAuth(did, resolverURL string, state *string) (*CommonVeri
}

var iden3StateInfo2023 *CommonVerificationMethod
for _, a := range res.DIDDocument.Authentication {
for _, a := range res.DIDDocument.VerificationMethod {
if a.Type == "Iden3StateInfo2023" {
a2 := a
iden3StateInfo2023 = &a2.CommonVerificationMethod
iden3StateInfo2023 = &a

Check failure on line 297 in verifiable/credential.go

View workflow job for this annotation

GitHub Actions / lint

G601: Implicit memory aliasing in for loop. (gosec)
}
}
if iden3StateInfo2023 == nil {
Expand Down

0 comments on commit 03a2860

Please sign in to comment.