diff --git a/impl/internal/did/did_vectors_test.go b/impl/internal/did/did_vectors_test.go index 2e4f06eb..d5d1da9d 100644 --- a/impl/internal/did/did_vectors_test.go +++ b/impl/internal/did/did_vectors_test.go @@ -112,6 +112,7 @@ func TestVectors(t *testing.T) { VerificationMethod: did.VerificationMethod{ ID: secpJWK.KID, Type: cryptosuite.JSONWebKeyType, + Controller: "did:dht:i9xkp8ddcbcg8jwq54ox699wuzxyifsqx4jru45zodqu453ksz6y", PublicKeyJWK: &secpJWK, }, Purposes: []did.PublicKeyPurpose{did.AssertionMethod, did.CapabilityInvocation}, diff --git a/impl/internal/did/testdata/vector-2-did-document.json b/impl/internal/did/testdata/vector-2-did-document.json index 8c303a82..5d82b7eb 100644 --- a/impl/internal/did/testdata/vector-2-did-document.json +++ b/impl/internal/did/testdata/vector-2-did-document.json @@ -18,7 +18,7 @@ { "id": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0GkvkdCGu3DL7Mkv0W1DhTMCBT9-z0CkFqZoJQtw7vw", "type": "JsonWebKey", - "controller": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo", + "controller": "did:dht:i9xkp8ddcbcg8jwq54ox699wuzxyifsqx4jru45zodqu453ksz6y", "publicKeyJwk": { "kty": "EC", "crv": "secp256k1", diff --git a/impl/internal/did/testdata/vector-2-dns-records.json b/impl/internal/did/testdata/vector-2-dns-records.json index 68aef54e..4b6436ae 100644 --- a/impl/internal/did/testdata/vector-2-dns-records.json +++ b/impl/internal/did/testdata/vector-2-dns-records.json @@ -39,7 +39,7 @@ "name": "_k1._did.", "type": "TXT", "ttl": 7200, - "rdata": ["t=1;k=Atf6NCChxjWpnrfPt1WDVE4ipYVSvi4pXCq4SUjx0jT9"] + "rdata": ["t=1;k=Atf6NCChxjWpnrfPt1WDVE4ipYVSvi4pXCq4SUjx0jT9;c=did:dht:i9xkp8ddcbcg8jwq54ox699wuzxyifsqx4jru45zodqu453ksz6y"] }, { "name": "_s0._did.", diff --git a/spec/spec.md b/spec/spec.md index 967d750d..8552ba40 100644 --- a/spec/spec.md +++ b/spec/spec.md @@ -1342,16 +1342,16 @@ With controller: `did:dht:i9xkp8ddcbcg8jwq54ox699wuzxyifsqx4jru45zodqu453ksz6y`. **DNS Resource Records:** -| Name | Type | TTL | Rdata | -| ---------- | ---- | ---- | ----------------------------------------------------------------------------------------------------- | -| _did.cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo. | NS | 7200 | gateway1.example-did-dht-gateway.com. | -| _did.cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo. | TXT | 7200 | v=0;vm=k0,k1;auth=k0;asm=k0,k1;inv=k0,k1;del=k0;svc=s0 | -| _cnt._did. | TXT | 7200 | did:example:abcd | -| _aka._did. | TXT | 7200 | did:example:efgh,did:example:ijkl | -| _k0._did. | TXT | 7200 | t=0;k=YCcHYL2sYNPDlKaALcEmll2HHyT968M4UWbr-9CFGWE;c=did:example:abcd | -| _k1._did. | TXT | 7200 | t=1;k=Atf6NCChxjWpnrfPt1WDVE4ipYVSvi4pXCq4SUjx0jT9 | -| _s0._did. | TXT | 7200 | id=service-1;t=TestService;se=https://test-service.com/1,https://test-service.com/2 | -| _typ._did. | TXT | 7200 | id=1,2,3 | +| Name | Type | TTL | Rdata | +| ---------- | ---- | ---- | ----------------------------------------------------------------------------------------------------------------- | +| _did.cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo. | NS | 7200 | gateway1.example-did-dht-gateway.com. | +| _did.cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo. | TXT | 7200 | v=0;vm=k0,k1;auth=k0;asm=k0,k1;inv=k0,k1;del=k0;svc=s0 | +| _cnt._did. | TXT | 7200 | did:example:abcd | +| _aka._did. | TXT | 7200 | did:example:efgh,did:example:ijkl | +| _k0._did. | TXT | 7200 | t=0;k=YCcHYL2sYNPDlKaALcEmll2HHyT968M4UWbr-9CFGWE | +| _k1._did. | TXT | 7200 | t=1;k=Atf6NCChxjWpnrfPt1WDVE4ipYVSvi4pXCq4SUjx0jT9;c=did:dht:i9xkp8ddcbcg8jwq54ox699wuzxyifsqx4jru45zodqu453ksz6y | +| _s0._did. | TXT | 7200 | id=service-1;t=TestService;se=https://test-service.com/1,https://test-service.com/2 | +| _typ._did. | TXT | 7200 | id=1,2,3 | #### Vector 3