Skip to content

Commit

Permalink
spec updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe committed Jan 4, 2024
1 parent 355671d commit 0817b00
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
9 changes: 7 additions & 2 deletions spec/registry/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ The DID DHT Method Specification Registry 1.0

**Latest Draft:** [tbd54566975.github.io/did-dht-method](https://tbd54566975.github.io/did-dht-method)

**Latest Update:** November 28, 2023
**Draft Created:** November 20, 2023

**Latest Update:** January 4, 2024

**Editors:**
~ [Gabe Cohen](https://github.com/decentralgabe)
Expand All @@ -31,9 +33,12 @@ Corresponds to the mapping, for a DID Document's DNS packet representation, of a
| Index | Key Type |
| ----- | ------------------------------------------------------ |
| 0 | [Ed25519](https://ed25519.cr.yp.to/) |
| 1 | [secp256k1](https://en.bitcoin.it/wiki/Secp256k1) |
| 1 | [secp256k1](https://datatracker.ietf.org/doc/html/rfc8812#section-3.1) |
| 2 | [secp256r1](https://neuromancer.sk/std/secg/secp256r1) |

::: note
All keys are represented as JWKs [[spec:RFC7517]] in their **uncompressed** form.
:::

An example [Verification Method](https://www.w3.org/TR/did-core/#verification-methods) record represented as a DNS TXT
record is as follows:
Expand Down
14 changes: 7 additions & 7 deletions spec/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The DID DHT Method Specification 1.0

**Draft Created:** October 20, 2023

**Latest Update:** December 12, 2023
**Latest Update:** January 4, 2024

**Editors:**
~ [Gabe Cohen](https://github.com/decentralgabe)
Expand Down Expand Up @@ -147,11 +147,11 @@ Comprising a DNS packet [[spec:RFC1034]] [[spec:RFC1035]], which is then stored
| Name | Type | TTL | Rdata |
| --------- | ---- | ------ | ----------------------------------------- |
| _did. | TXT | 7200 | vm=k0,k1,k2;auth=k0;asm=k1;inv=k2;del=k2;srv=s0,s1,s2 |
| _k0._did. | TXT | 7200 | t=0,k=`<b64url>` |
| _k1._did. | TXT | 7200 | t=1,k=`<b64url>` |
| _k2._did. | TXT | 7200 | t=1,k=`<b64url>` |
| _s0._did. | TXT | 7200 | t=LinkedDomains;uri=foo.com;... |
| _s1._did. | TXT | 7200 | t=DWN;uri=https://dwn.tbddev.org/dwn5;... |
| _k0._did. | TXT | 7200 | t=0,k=`<unpadded-b64url>` |
| _k1._did. | TXT | 7200 | t=1,k=`<unpadded-b64url>` |
| _k2._did. | TXT | 7200 | t=1,k=`<unpadded-b64url>` |
| _s0._did. | TXT | 7200 | id=domain,t=LinkedDomains,uri=foo.com |
| _s1._did. | TXT | 7200 | id=dwn,t=DecentralizedWebNode,uri=https://dwn.tbddev.org/dwn5 |

::: note
The recommended TTL value is 7200 seconds (2 hours), the default TTL for Mainline records.
Expand Down Expand Up @@ -834,7 +834,7 @@ A minimal DID Document.

#### Vector 2

A DID Document with two keys ([[ref:Identity Key]] and a secp256k1 key), a service endpoint, and two types to index.
A DID Document with two keys ([[ref:Identity Key]] and an uncompressed secp256k1 key), a service endpoint, and two types to index.

**Identity Public Key JWK:**

Expand Down

0 comments on commit 0817b00

Please sign in to comment.