From 03a28600904c49dd86a713b6f98de88f61b6a40c Mon Sep 17 00:00:00 2001 From: vbasiuk Date: Thu, 4 Jan 2024 13:46:38 +0200 Subject: [PATCH] update to pilygonid resolver --- verifiable/credential.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/verifiable/credential.go b/verifiable/credential.go index b67915c..5a09b12 100644 --- a/verifiable/credential.go +++ b/verifiable/credential.go @@ -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 } } if iden3StateInfo2023 == nil {