bmuller / kademlia

A DHT in Python using asyncio
http://kademlia.readthedocs.org
MIT License
830 stars 210 forks source link

Can write permissions be set for keys on Kademlia? #83

Closed quadrismegistus closed 4 years ago

quadrismegistus commented 4 years ago

Apologies if this not the right place for the question, and a bit of a newbie to kademlia. Is it possible to set write permissions for a key in a shared Kademlia store? I imagine this could be programmed manually in my client code -- e.g. verify private/public key of author/group match before allowing an overwrite -- but does that still leave open the possibility that another client could connect to the network and overwrite it anyway?

Thanks for reading this and thanks for this incredible package!

bmuller commented 4 years ago

Hey @quadrismegistus - you could limit writes by implementing your own version of the IStorage interface - and check for signed values, for instance.