generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new / missing vectors for did dht and presentation exchange #108
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,150 @@ | ||
{ | ||
"description": "did:dht create", | ||
"vectors": [ | ||
{ | ||
"description": "creates a did document according to the vector in https://did-dht.com/#vector-1", | ||
"input": { | ||
"identityPublicJwk": { | ||
"kty": "OKP", | ||
"crv": "Ed25519", | ||
"x": "YCcHYL2sYNPDlKaALcEmll2HHyT968M4UWbr-9CFGWE", | ||
"alg": "EdDSA", | ||
"kid": "0" | ||
} | ||
}, | ||
"output": { | ||
"id": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo", | ||
"verificationMethod": [ | ||
{ | ||
"id": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0", | ||
"type": "JsonWebKey", | ||
"controller": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo", | ||
"publicKeyJwk": { | ||
"kty": "OKP", | ||
"crv": "Ed25519", | ||
"x": "YCcHYL2sYNPDlKaALcEmll2HHyT968M4UWbr-9CFGWE", | ||
"alg": "EdDSA", | ||
"kid": "0" | ||
} | ||
} | ||
], | ||
"authentication": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0" | ||
], | ||
"assertionMethod": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0" | ||
], | ||
"capabilityInvocation": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0" | ||
], | ||
"capabilityDelegation": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0" | ||
] | ||
} | ||
}, | ||
{ | ||
"description": "creates a did document according to the vector in https://did-dht.com/#vector-2", | ||
"input": { | ||
"identityPublicJwk": { | ||
"kty": "OKP", | ||
"crv": "Ed25519", | ||
"x": "YCcHYL2sYNPDlKaALcEmll2HHyT968M4UWbr-9CFGWE", | ||
"alg": "EdDSA", | ||
"kid": "0" | ||
}, | ||
"services": [ | ||
{ | ||
"id": "service-1", | ||
"type": "TestService", | ||
"serviceEndpoint": [ | ||
"https://test-service.com/1", | ||
"https://test-service.com/2" | ||
] | ||
} | ||
], | ||
"additionalVerificationMethods": [ | ||
{ | ||
"jwk": { | ||
"kty": "EC", | ||
"crv": "secp256k1", | ||
"x": "1_o0IKHGNamet8-3VYNUTiKlhVK-LilcKrhJSPHSNP0", | ||
"y": "qzU8qqh0wKB6JC_9HCu8pHE-ZPkDpw4AdJ-MsV2InVY", | ||
"alg": "ES256K", | ||
"kid": "0GkvkdCGu3DL7Mkv0W1DhTMCBT9-z0CkFqZoJQtw7vw" | ||
}, | ||
"purposes": [ | ||
"assertionMethod", | ||
"capabilityInvocation" | ||
] | ||
} | ||
], | ||
"controller": [ | ||
"did:example:abcd" | ||
], | ||
"alsoKnownAs": [ | ||
"did:example:efgh", | ||
"did:example:ijkl" | ||
] | ||
}, | ||
"output": { | ||
"id": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo", | ||
"controller": "did:example:abcd", | ||
"alsoKnownAs": [ | ||
"did:example:efgh", | ||
"did:example:ijkl" | ||
], | ||
"verificationMethod": [ | ||
{ | ||
"id": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0", | ||
"type": "JsonWebKey", | ||
"controller": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo", | ||
"publicKeyJwk": { | ||
"kty": "OKP", | ||
"crv": "Ed25519", | ||
"x": "YCcHYL2sYNPDlKaALcEmll2HHyT968M4UWbr-9CFGWE", | ||
"alg": "EdDSA", | ||
"kid": "0" | ||
} | ||
}, | ||
{ | ||
"id": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0GkvkdCGu3DL7Mkv0W1DhTMCBT9-z0CkFqZoJQtw7vw", | ||
"type": "JsonWebKey", | ||
"controller": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo", | ||
"publicKeyJwk": { | ||
"kty": "EC", | ||
"crv": "secp256k1", | ||
"x": "1_o0IKHGNamet8-3VYNUTiKlhVK-LilcKrhJSPHSNP0", | ||
"y": "qzU8qqh0wKB6JC_9HCu8pHE-ZPkDpw4AdJ-MsV2InVY", | ||
"alg": "ES256K", | ||
"kid": "0GkvkdCGu3DL7Mkv0W1DhTMCBT9-z0CkFqZoJQtw7vw" | ||
} | ||
} | ||
], | ||
"authentication": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0" | ||
], | ||
"assertionMethod": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0", | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0GkvkdCGu3DL7Mkv0W1DhTMCBT9-z0CkFqZoJQtw7vw" | ||
], | ||
"capabilityInvocation": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0", | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0GkvkdCGu3DL7Mkv0W1DhTMCBT9-z0CkFqZoJQtw7vw" | ||
], | ||
"capabilityDelegation": [ | ||
"did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#0" | ||
], | ||
"service": [ | ||
{ | ||
"id": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoo#service-1", | ||
"type": "TestService", | ||
"serviceEndpoint": [ | ||
"https://test-service.com/1", | ||
"https://test-service.com/2" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
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,41 @@ | ||
{ | ||
"description": "did:dht resolution", | ||
"vectors": [ | ||
{ | ||
"description": "methodNotSupported error returned when did method is not dht", | ||
"input": { | ||
"didUri": "did:web:example.com" | ||
}, | ||
"output": { | ||
"didResolutionMetadata": { | ||
"error": "methodNotSupported" | ||
} | ||
}, | ||
"errors": true | ||
}, | ||
{ | ||
"description": "notFound error returned when not published", | ||
"input": { | ||
"didUri": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfoz" | ||
}, | ||
"output": { | ||
"didResolutionMetadata": { | ||
"error": "notFound" | ||
} | ||
}, | ||
"errors": true | ||
}, | ||
{ | ||
"description": "invalidDid error returned for suffix with invalid character", | ||
"input": { | ||
"didUri": "did:dht:cyuoqaf7itop8ohww4yn5ojg13qaq83r9zihgqntc5i9zwrfdfov" | ||
}, | ||
"output": { | ||
"didResolutionMetadata": { | ||
"error": "invalidDid" | ||
} | ||
}, | ||
"errors": true | ||
} | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend waiting until this PR is merged as the vector will change decentralized-identity/did-dht#102