-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
DHT Records: signatures #525
Comments
I dont know how i feel about this. I agree its needed for the security aspect, but signing every single provider would get really expensive. And we are already worried about CPU consumption. Id say leave this issue open, but not worry about it for a little while. |
I was curious about the cost of Sign/Verify. If I made a mistake with the computation, let me know. 2406924 ns/op is 2.4 ms/op
see #528 |
hrm... i wonder how 2.4 ms will impact the time it takes to add a larger file |
At steady state, with an average block size of 256KB, the 2.4ms operation caps sustained throughput at 102 MB/s. (Burst rate not affected) |
okay, 102MB/s isnt terrible for now. We will have to look for different solutions in the future (should be fairly easy to parallelize) |
This is now included on the Record Spec https://github.com/ipfs/specs/tree/master/records |
I don't think it should be closed as it concerns whole DHT not only IPNS/RS. About the issue: I don't know if it feasible with RSA, keys and signatures are big and slow. |
@whyrusleeping @daviddias This issue is closed, but, peer records and provider records don't seem to be signed; libp2p/go-libp2p-kad-dht#558 and libp2p/go-libp2p-kad-dht#559 are still open. Should this issue be reopened or has this been superseded by another issue? |
@Kubuxu Could this issue be reopened? |
@Winterhuman we have other issues describing the problems, they are linked to this one. It doesn't need to be reoppened |
Currently, DHT provider records are not signed, meaning anyone can sign someone else up for providing an object. That shouldn't happen: dht provide records must be signed, and only used if sig verify succeeds.
The
{Get/Put}Value
records we use (IPNS) already have their own notion of validity.The text was updated successfully, but these errors were encountered: