MicroMinion / mm-services-kademlia

kademlia service for MicroMinion platform
GNU Affero General Public License v3.0
1 stars 0 forks source link

implement signature support for get/put data #3

Open thomasdelaet opened 8 years ago

thomasdelaet commented 8 years ago

If I put a value, it should be signed with my own public key. If we enable encryption on the transport protocol of KAD, other hosts can reject all values that are being PUT from a connection that doesnt match the signature of the value that is being PUT. In addition: - If the key is the public Key itself, we can also reject any signature that doesnt match the public key (only relevant for publishing connectionInfo, not for lookup of email addresses).

probably makes sense to include nonce

thomasdelaet commented 8 years ago

Assume that a PUT contains key => value mapping where value is a dictionary with the following keys:

When you do a get and have a result returned you verify: