From ba983e9aaf3a365e3c54da82fc4f1fefefb46880 Mon Sep 17 00:00:00 2001 From: Jiyoon Koo Date: Mon, 26 Feb 2024 11:02:31 -0500 Subject: [PATCH 1/4] updating top level controller field to be a list of string instead of a string --- test-vectors/did_dht/create.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test-vectors/did_dht/create.json b/test-vectors/did_dht/create.json index 46ef41d..c4ac38e 100644 --- a/test-vectors/did_dht/create.json +++ b/test-vectors/did_dht/create.json @@ -88,7 +88,9 @@ }, "output": { "id": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo", - "controller": "did:example:abcd", + "controller": [ + "did:example:abcd" + ], "alsoKnownAs": [ "did:example:efgh", "did:example:ijkl" From ae29a67a7df2d2581100c588f7b5d5db25ecadfe Mon Sep 17 00:00:00 2001 From: Jiyoon Koo Date: Tue, 27 Feb 2024 16:19:21 -0500 Subject: [PATCH 2/4] adding changes to resolve.json --- test-vectors/did_jwk/resolve.json | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test-vectors/did_jwk/resolve.json b/test-vectors/did_jwk/resolve.json index b1aec6b..2873d64 100644 --- a/test-vectors/did_jwk/resolve.json +++ b/test-vectors/did_jwk/resolve.json @@ -7,10 +7,7 @@ "output": { "@context": "https://w3id.org/did-resolution/v1", "didDocument": { - "@context": [ - "https://www.w3.org/ns/did/v1", - "https://w3id.org/security/suites/jws-2020/v1" - ], + "@context": "https://www.w3.org/ns/did/v1", "id": "did:jwk:eyJrdHkiOiJFQyIsInVzZSI6InNpZyIsImNydiI6InNlY3AyNTZrMSIsImtpZCI6ImkzU1BSQnRKS292SEZzQmFxTTkydGk2eFFDSkxYM0U3WUNld2lIVjJDU2ciLCJ4IjoidmRyYnoyRU96dmJMRFZfLWtMNGVKdDdWSS04VEZaTm1BOVlnV3p2aGg3VSIsInkiOiJWTEZxUU1aUF9Bc3B1Y1hvV1gyLWJHWHBBTzFmUTVMbjE5VjVSQXhyZ3ZVIiwiYWxnIjoiRVMyNTZLIn0", "verificationMethod": [ { @@ -52,10 +49,7 @@ "output": { "@context": "https://w3id.org/did-resolution/v1", "didDocument": { - "@context": [ - "https://www.w3.org/ns/did/v1", - "https://w3id.org/security/suites/jws-2020/v1" - ], + "@context": "https://www.w3.org/ns/did/v1", "id": "did:jwk:eyJrdHkiOiJPS1AiLCJ1c2UiOiJzaWciLCJjcnYiOiJFZDI1NTE5Iiwia2lkIjoiVnRTSFhQbEtEdzFFRW9PajVYTjNYV2hqU1BZVk52WC1lNHZqUk8weVlKQSIsIngiOiJpejcwc3ZTTHhOWmhzRHhlSlFfam5PVmJYM0tGTmtjQmNNaldqWm1YRXNBIiwiYWxnIjoiRWREU0EifQ", "verificationMethod": [ { From 260bab5b52f514024e9ef650ea406353a9687828 Mon Sep 17 00:00:00 2001 From: Jiyoon Koo Date: Thu, 29 Feb 2024 22:55:28 -0500 Subject: [PATCH 3/4] fixing verificationmethod type for did jwk --- test-vectors/did_jwk/resolve.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-vectors/did_jwk/resolve.json b/test-vectors/did_jwk/resolve.json index 2873d64..1049eea 100644 --- a/test-vectors/did_jwk/resolve.json +++ b/test-vectors/did_jwk/resolve.json @@ -11,7 +11,7 @@ "id": "did:jwk:eyJrdHkiOiJFQyIsInVzZSI6InNpZyIsImNydiI6InNlY3AyNTZrMSIsImtpZCI6ImkzU1BSQnRKS292SEZzQmFxTTkydGk2eFFDSkxYM0U3WUNld2lIVjJDU2ciLCJ4IjoidmRyYnoyRU96dmJMRFZfLWtMNGVKdDdWSS04VEZaTm1BOVlnV3p2aGg3VSIsInkiOiJWTEZxUU1aUF9Bc3B1Y1hvV1gyLWJHWHBBTzFmUTVMbjE5VjVSQXhyZ3ZVIiwiYWxnIjoiRVMyNTZLIn0", "verificationMethod": [ { - "type": "JsonWebKey2020", + "type": "JsonWebKey", "id": "did:jwk:eyJrdHkiOiJFQyIsInVzZSI6InNpZyIsImNydiI6InNlY3AyNTZrMSIsImtpZCI6ImkzU1BSQnRKS292SEZzQmFxTTkydGk2eFFDSkxYM0U3WUNld2lIVjJDU2ciLCJ4IjoidmRyYnoyRU96dmJMRFZfLWtMNGVKdDdWSS04VEZaTm1BOVlnV3p2aGg3VSIsInkiOiJWTEZxUU1aUF9Bc3B1Y1hvV1gyLWJHWHBBTzFmUTVMbjE5VjVSQXhyZ3ZVIiwiYWxnIjoiRVMyNTZLIn0#0", "controller": "did:jwk:eyJrdHkiOiJFQyIsInVzZSI6InNpZyIsImNydiI6InNlY3AyNTZrMSIsImtpZCI6ImkzU1BSQnRKS292SEZzQmFxTTkydGk2eFFDSkxYM0U3WUNld2lIVjJDU2ciLCJ4IjoidmRyYnoyRU96dmJMRFZfLWtMNGVKdDdWSS04VEZaTm1BOVlnV3p2aGg3VSIsInkiOiJWTEZxUU1aUF9Bc3B1Y1hvV1gyLWJHWHBBTzFmUTVMbjE5VjVSQXhyZ3ZVIiwiYWxnIjoiRVMyNTZLIn0", "publicKeyJwk": { @@ -53,7 +53,7 @@ "id": "did:jwk:eyJrdHkiOiJPS1AiLCJ1c2UiOiJzaWciLCJjcnYiOiJFZDI1NTE5Iiwia2lkIjoiVnRTSFhQbEtEdzFFRW9PajVYTjNYV2hqU1BZVk52WC1lNHZqUk8weVlKQSIsIngiOiJpejcwc3ZTTHhOWmhzRHhlSlFfam5PVmJYM0tGTmtjQmNNaldqWm1YRXNBIiwiYWxnIjoiRWREU0EifQ", "verificationMethod": [ { - "type": "JsonWebKey2020", + "type": "JsonWebKey", "id": "did:jwk:eyJrdHkiOiJPS1AiLCJ1c2UiOiJzaWciLCJjcnYiOiJFZDI1NTE5Iiwia2lkIjoiVnRTSFhQbEtEdzFFRW9PajVYTjNYV2hqU1BZVk52WC1lNHZqUk8weVlKQSIsIngiOiJpejcwc3ZTTHhOWmhzRHhlSlFfam5PVmJYM0tGTmtjQmNNaldqWm1YRXNBIiwiYWxnIjoiRWREU0EifQ#0", "controller": "did:jwk:eyJrdHkiOiJPS1AiLCJ1c2UiOiJzaWciLCJjcnYiOiJFZDI1NTE5Iiwia2lkIjoiVnRTSFhQbEtEdzFFRW9PajVYTjNYV2hqU1BZVk52WC1lNHZqUk8weVlKQSIsIngiOiJpejcwc3ZTTHhOWmhzRHhlSlFfam5PVmJYM0tGTmtjQmNNaldqWm1YRXNBIiwiYWxnIjoiRWREU0EifQ", "publicKeyJwk": { From 067f08f1778c0c3d6014bac5b1aeadc1663e319e Mon Sep 17 00:00:00 2001 From: Jiyoon Koo Date: Tue, 5 Mar 2024 20:15:20 -0500 Subject: [PATCH 4/4] making context be a list of strings --- test-vectors/did_jwk/resolve.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test-vectors/did_jwk/resolve.json b/test-vectors/did_jwk/resolve.json index 1049eea..2782cb7 100644 --- a/test-vectors/did_jwk/resolve.json +++ b/test-vectors/did_jwk/resolve.json @@ -7,7 +7,9 @@ "output": { "@context": "https://w3id.org/did-resolution/v1", "didDocument": { - "@context": "https://www.w3.org/ns/did/v1", + "@context": [ + "https://www.w3.org/ns/did/v1" + ], "id": "did:jwk:eyJrdHkiOiJFQyIsInVzZSI6InNpZyIsImNydiI6InNlY3AyNTZrMSIsImtpZCI6ImkzU1BSQnRKS292SEZzQmFxTTkydGk2eFFDSkxYM0U3WUNld2lIVjJDU2ciLCJ4IjoidmRyYnoyRU96dmJMRFZfLWtMNGVKdDdWSS04VEZaTm1BOVlnV3p2aGg3VSIsInkiOiJWTEZxUU1aUF9Bc3B1Y1hvV1gyLWJHWHBBTzFmUTVMbjE5VjVSQXhyZ3ZVIiwiYWxnIjoiRVMyNTZLIn0", "verificationMethod": [ { @@ -49,7 +51,9 @@ "output": { "@context": "https://w3id.org/did-resolution/v1", "didDocument": { - "@context": "https://www.w3.org/ns/did/v1", + "@context": [ + "https://www.w3.org/ns/did/v1" + ], "id": "did:jwk:eyJrdHkiOiJPS1AiLCJ1c2UiOiJzaWciLCJjcnYiOiJFZDI1NTE5Iiwia2lkIjoiVnRTSFhQbEtEdzFFRW9PajVYTjNYV2hqU1BZVk52WC1lNHZqUk8weVlKQSIsIngiOiJpejcwc3ZTTHhOWmhzRHhlSlFfam5PVmJYM0tGTmtjQmNNaldqWm1YRXNBIiwiYWxnIjoiRWREU0EifQ", "verificationMethod": [ {