Skip to content
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 web5 spec resolve test vectors for did dht #125

Merged
merged 7 commits into from
Mar 29, 2024
Merged

Conversation

mihai-chiorean
Copy link
Contributor

@mihai-chiorean mihai-chiorean commented Mar 23, 2024

Added a git submodule for did dht spec test vectors, similar to what web5-js does,

@decentralgabe
Copy link
Member

this is good for now as it is at least consistent with JS; however really we need new vectors from the spec when the first version is stamped. until then we will have some inconsistency...I have an issue for this here decentralized-identity/web5-spec#11

@mihai-chiorean
Copy link
Contributor Author

mihai-chiorean commented Mar 25, 2024

this is good for now as it is at least consistent with JS; however really we need new vectors from the spec when the first version is stamped. until then we will have some inconsistency...I have an issue for this here TBD54566975/web5-spec#11

the vectors I'm using actually - which were the ones available - seem to be only error scenarios, no happy path, fwiw


const dhtSpecVectors string = "../../web5-spec/test-vectors/did_dht/resolve.json"

type vector struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll need to move some of this to a shared space in the code repo because we'll need a common interface to retrieve the test vector for the given test case, but we could do that in a follow-up when we expand the scope of test vectors in this repo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed. I want to add "create" vectors too. I could make that change there.

README.md Outdated Show resolved Hide resolved
Co-authored-by: Kendall Weihe <[email protected]>
@mihai-chiorean mihai-chiorean merged commit deb5c77 into main Mar 29, 2024
3 checks passed
@mihai-chiorean mihai-chiorean deleted the testvectors branch March 29, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants