Skip to content

Commit

Permalink
Add did id to root record name
Browse files Browse the repository at this point in the history
  • Loading branch information
Diane Huxley committed Jun 27, 2024
1 parent 7b4ff0b commit fdbe974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dids/src/main/kotlin/web5/sdk/dids/methods/dht/DidDht.kt
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public sealed class DidDhtApi(configuration: DidDhtConfiguration) {

message.addRecord(
TXTRecord(
Name("_did."), DClass.IN, ttl, rootRecordText.joinToString(PROPERTY_SEPARATOR)
Name("_did.${didDocument.id.split(":")[2]}"), DClass.IN, ttl, rootRecordText.joinToString(PROPERTY_SEPARATOR)
), Section.ANSWER
)

Expand Down

0 comments on commit fdbe974

Please sign in to comment.