Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add did id to root record name #329

Closed
wants to merge 1 commit into from
Closed

Add did id to root record name #329

wants to merge 1 commit into from

Conversation

diehuxx
Copy link

@diehuxx diehuxx commented Jun 27, 2024

Overview

Bugfix in did:dht implementation

Description

The did dht spec says that the root record should have name like _did.<id> where id is the last part of did:dht:123 (Source).

How Has This Been Tested?

Describe the tests that you ran to verify your changes. Provide instructions for verification.

  • Test A (e.g. Test A - New test that does ... run in ...)
  • Test B

Checklist

Before submitting this PR, please make sure:

  • I have read the CONTRIBUTING document.
  • My code is consistent with the rest of the project
  • I have tagged the relevant reviewers and/or interested parties
  • I have updated the READMEs and other documentation of affected packages

References

Please list relevant documentation (e.g. tech specs, articles, follow up or related work) relevant to this change, and note if the documentation has been updated.

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you write a test for this change?

@diehuxx diehuxx closed this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants