From 4f52a0c272cf7301957ddf064e4cef1522aebd4b Mon Sep 17 00:00:00 2001 From: gabe Date: Wed, 3 Apr 2024 10:25:25 -0700 Subject: [PATCH] update test vector with long vector --- spec/spec.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/spec/spec.md b/spec/spec.md index 3ff142ff..bf5c3085 100644 --- a/spec/spec.md +++ b/spec/spec.md @@ -1230,7 +1230,7 @@ With controller: `did:dht:i9xkp8ddcbcg8jwq54ox699wuzxyifsqx4jru45zodqu453ksz6y`. #### Vector 3 A DID Document with two keys -- the [[ref:Identity Key]] and an X25519 key used with a different `alg` value than -what is specified in the registry. The DID also has two gateway records. +what is specified in the registry. The DID also has two gateway records and a service with an endpoint greater than 255 characters. **Identity Public Key JWK:** @@ -1258,6 +1258,16 @@ what is specified in the registry. The DID also has two gateway records. **Key Purposes:** `Key Agreement`. +**Service:** + +```json +{ + "id": "service-1", + "type": "TestLongService", + "serviceEndpoint": ["https://test-lllllllllllllllllllllllllllllllllllooooooooooooooooooooonnnnnnnnnnnnnnnnnnngggggggggggggggggggggggggggggggggggggsssssssssssssssssssssssssseeeeeeeeeeeeeeeeeeerrrrrrrrrrrrrrrvvvvvvvvvvvvvvvvvvvviiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiccccccccccccccccccccccccccccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.com/1"] +} +``` + **Gateways:**: `gateway1.example-did-dht-gateway.com.`, `gateway2.example-did-dht-gateway.com.`. **DID Document:** @@ -1305,6 +1315,13 @@ what is specified in the registry. The DID also has two gateway records. ], "capabilityDelegation": [ "did:dht:sr6jgmcc84xig18ix66qbiwnzeiumocaaybh13f5w97bfzus4pcy#0" + ], + "service": [ + { + "id": "did:dht:sr6jgmcc84xig18ix66qbiwnzeiumocaaybh13f5w97bfzus4pcy#service-1", + "type": "TestLongService", + "serviceEndpoint": ["https://test-lllllllllllllllllllllllllllllllllllooooooooooooooooooooonnnnnnnnnnnnnnnnnnngggggggggggggggggggggggggggggggggggggsssssssssssssssssssssssssseeeeeeeeeeeeeeeeeeerrrrrrrrrrrrrrrvvvvvvvvvvvvvvvvvvvviiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiccccccccccccccccccccccccccccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.com/1"] + } ] } ``` @@ -1314,9 +1331,10 @@ what is specified in the registry. The DID also has two gateway records. | Name | Type | TTL | Rdata | | --------- | ---- | ---- | ----------- | | _did.sr6jgmcc84xig18ix66qbiwnzeiumocaaybh13f5w97bfzus4pcy. | NS | 7200 | gateway1.example-did-dht-gateway.com. | -| _did.sr6jgmcc84xig18ix66qbiwnzeiumocaaybh13f5w97bfzus4pcy. | TXT | 7200 | v=0;vm=k0,k1;auth=k0;asm=k0;agm=k1;inv=k0;del=k0 | +| _did.sr6jgmcc84xig18ix66qbiwnzeiumocaaybh13f5w97bfzus4pcy. | TXT | 7200 | v=0;vm=k0,k1;auth=k0;asm=k0;agm=k1;inv=k0;del=k0;srv=s0 | | _k0.did. | TXT | 7200 | id=0;t=0;k=sTyTLYw-n1NI9X-84NaCuis1wZjAA8lku6f6Et5201g | | _k1.did. | TXT | 7200 | id=WVy5IWMa36AoyAXZDvPd5j9zxt2t-GjifDEV-DwgIdQ;t=3;k=3POE0_i2mGeZ2qiQCA3KcLfi1fZo0311CXFSIwt1nB4;a=ECDH-ES+A128KW | +| _s0.did. | TXT | 7200 | id=service-1;t=TestLongService;se= | ### Open API Definition