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

Convert dht doc to dns packet #224

Merged
merged 3 commits into from
Jun 3, 2024
Merged

Convert dht doc to dns packet #224

merged 3 commits into from
Jun 3, 2024

Conversation

diehuxx
Copy link
Contributor

@diehuxx diehuxx commented Jun 3, 2024

The last step in converting between did:dht documents and DNS packets. This includes:

  1. Converting verification methods and verification relationships to and from DNS records and references thereof within the root record.
  2. Converting services to and from DNS records and references references thereof within the root record
  3. Converting alsoKnownAs to and from DNS records
  4. Converting Controllers to and from DNS records

Possibly in follow up PR: More test coverage for Document::to_packet and Document::from_packet for unhappy paths.

@diehuxx diehuxx force-pushed the convert-doc-to-dns branch from 22cd45a to 3405197 Compare June 3, 2024 17:13
Copy link
Member

@decentralgabe decentralgabe left a comment

Choose a reason for hiding this comment

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

awesome work!

// 6. Create document
Ok(Document {
id: did_uri,
context: None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is context: None on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, it is. did:dht does not use context

https://did-dht.com/#note-5
Screenshot 2024-06-03 at 12 36 47 PM=

Copy link
Contributor

@nitro-neal nitro-neal left a comment

Choose a reason for hiding this comment

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

This is amazing, great work!

@diehuxx diehuxx force-pushed the convert-doc-to-dns branch from 0ba32fa to f4431de Compare June 3, 2024 19:32
@diehuxx diehuxx merged commit 8009d84 into main Jun 3, 2024
6 checks passed
@diehuxx diehuxx deleted the convert-doc-to-dns branch June 3, 2024 19:39
diehuxx pushed a commit that referenced this pull request Jun 3, 2024
* main:
  Convert dht doc to dns packet (#224)
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.

3 participants