Skip to content

Commit

Permalink
simple
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe committed May 23, 2024
1 parent 798f607 commit 104b1fd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions impl/internal/did/did.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 104b1fd

Please sign in to comment.