-
Notifications
You must be signed in to change notification settings - Fork 9
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 interop tests for different key types #20
Comments
I would like to try to solve this, as it's of relevance to our project (Quorum Control). |
@jacobheun Could you give me a hint as to where the peer key type is configured in test/connect/js2go.js? I'm not familiar enough with libp2p internals to tell yet; I scoured through the tests and the immediate API and couldn't figure out so far, I suppose RSA use is implicit? |
@aknuds1 These tests should end up failing. JS currently has some open issues we need to get resolved for supporting the other keys, namely:
|
Thanks @jacobheun! I also came to the conclusion I had to provide a key through the |
@jacobheun I'm able to break the tests now, by using ECDSA keys. |
@aknuds1 that's great! Ideally what I think interop should be doing is running through all the tests with different keys, but that's a scenario I think we can add later. The advantage of doing that is making sure things like pubsub signature verification is working correctly with various keys types. I think we could look at pushing up these failing tests and allow them to fail in CI so we at least have visibility while we work on finishing support in JS. |
@jacobheun I'll make a PR then, so you can provide feedback. |
@jacobheun Please have a look at my PR #21. I'm open to feedback on this as a starting point. |
This seems done! :D |
After some discussion on the libp2p discuss forums, it would be ideal to have interop tests to verify different peer key types are working properly across implementations. The current interop tests are only validating RSA keys.
The text was updated successfully, but these errors were encountered: