-
Notifications
You must be signed in to change notification settings - Fork 44
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
Feature Request: Out-of band cryptographic signatures #123
Comments
Hey @betamos Why not simply using the peerId provided getters like: I am not seeing any reason on having more code, which implies a bigger bundle that is particularly bad for browser environments and more code to maintain and test. Can you help me understand what would this bring that we cannot already achieve easily? |
Thanks, that's great. Signing with the private key and verifying with a public key does work as described. However, I couldn't get the public key of remote peers, in order to invoke
Closing out since the remaining issue is not in this repository. |
@betamos I just got to the same conclusion as you in libp2p/js-libp2p#626 (comment) So yes, you are right, and we will need to work on that change :) The same for noise |
FYI, this is also an issue using NodeFactoryIo/js-libp2p-noise, which we will want to have people using on |
A signing API would be useful when libp2p is used with non-libp2p transports or for persistent storage of a message that some other entity can verify the origin of. It could look e.g. like:
Verifying would require the presence of a public key (not just a B58String). From a quick experiment, it seems the public key is populated on
handle
but not upon a successfuldial
, when peer id is created from a B58String. This could probably be added in some way in libp2p since the public key is available during a handshake anyway.Would y'all be open to such a feature? Happy to put in some work if so.
The text was updated successfully, but these errors were encountered: