generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated DID:DHT implementation to be compliant with vector 1 (#504)
- Updated DID:DHT implementation to be compliant with vector 1 - Added self to default owners in CODEOWNERS - Opportunistic QoL update: excluded generated files from search results - Opportunistic QoL update:: allow one click debugging for DID project
- Loading branch information
1 parent
ac1e6f1
commit 857d160
Showing
9 changed files
with
115 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@web5/dids": patch | ||
--- | ||
|
||
DID:DHT - Only have <ID>. suffix for Root and Gateway Record names |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/dids/tests/fixtures/test-vectors/did-dht/vector-1-did-document.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"id": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo", | ||
"verificationMethod": [ | ||
{ | ||
"id": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0", | ||
"type": "JsonWebKey", | ||
"controller": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo", | ||
"publicKeyJwk": { | ||
"kid": "0", | ||
"alg": "Ed25519", | ||
"crv": "Ed25519", | ||
"kty": "OKP", | ||
"x": "YCcHYL2sYNPDlKaALcEmll2HHyT968M4UWbr-9CFGWE" | ||
} | ||
} | ||
], | ||
"authentication": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0" | ||
], | ||
"assertionMethod": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0" | ||
], | ||
"capabilityInvocation": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0" | ||
], | ||
"capabilityDelegation": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0" | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/dids/tests/fixtures/test-vectors/did-dht/vector-1-dns-records.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"name": "_did.cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo.", | ||
"type": "TXT", | ||
"ttl": 7200, | ||
"rdata": "v=0;vm=k0;auth=k0;asm=k0;inv=k0;del=k0" | ||
}, | ||
{ | ||
"name": "_k0._did.", | ||
"type": "TXT", | ||
"ttl": 7200, | ||
"rdata": "id=0;t=0;k=YCcHYL2sYNPDlKaALcEmll2HHyT968M4UWbr-9CFGWE" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters