From 104b1fda1d0aa2bf334c3bff86db0440fef7e94c Mon Sep 17 00:00:00 2001 From: gabe Date: Wed, 22 May 2024 22:00:14 -0700 Subject: [PATCH] simple --- impl/internal/did/did.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/impl/internal/did/did.go b/impl/internal/did/did.go index 8654b5fb..72dc9464 100644 --- a/impl/internal/did/did.go +++ b/impl/internal/did/did.go @@ -760,18 +760,15 @@ func (d DHT) FromDNSPacket(msg *dns.Msg) (*DIDDHTDocument, error) { seenVersion = true case "auth": for _, valueItem := range valueItems { - s := keyLookup[valueItem] - doc.Authentication = append(doc.Authentication, doc.ID+"#"+s) + doc.Authentication = append(doc.Authentication, doc.ID+"#"+keyLookup[valueItem]) } case "asm": for _, valueItem := range valueItems { - s := keyLookup[valueItem] - doc.AssertionMethod = append(doc.AssertionMethod, doc.ID+"#"+s) + doc.AssertionMethod = append(doc.AssertionMethod, doc.ID+"#"+keyLookup[valueItem]) } case "agm": for _, valueItem := range valueItems { - s := keyLookup[valueItem] - doc.KeyAgreement = append(doc.KeyAgreement, doc.ID+"#"+s) + doc.KeyAgreement = append(doc.KeyAgreement, doc.ID+"#"+keyLookup[valueItem]) } case "inv": for _, valueItem := range valueItems {