That's pretty much what I already described in my initial reply.
Including the pubkey ensures single-ownership.
happen. Who would own the word "Video" for example?
Post by s***@libero.itPlease, correct me if I'm wrong.
In a mutable item I can use a string as salt for the item, but I cannot have a
list of entry's that maps that string to.
Using different salt I can have different values stored for the same key but
these values are unique. Can be updated with CAS, but, cannot exist a list of
values that can be identified with the same salt.
this code
[code]
map<string, set<entry>> m_association_string_to_set
[/code]
can never belong to DHT because of single-ownership?
Or in a more completed way
[code]
std::map<node_id,set<node_id>> m_keyword_to_infohash_map
[/code]
list(entry).
Thanks
----Messaggio originale----
Data: 13/05/2016 22.34
Ogg: Re: [libtorrent] Possible DHT extension?
If your motivation is keyword search then that is pretty much an
anti-goal of the put/get design.
* spam / other malicious actors
* human language follows a zipf distrubution, kademlia assumes that keys
are roughly uniformly distributed.
* intersection or union operations
* partial matching
* multi-ownership, no single entity should own a particular keyword
* result-set-sizes, a consequence of multi-ownership
Of course there's plenty of research and solutions to those problems,
but they're not trivial, especially when you have to implement all of them.
The get/put feature set was derived from the idea of tackling an easier
problem and just having single-owner data structures on the dht, where
the mutable put would give you an updatable root node in your data
structure pointing to the remaining entries, implemented as immutable
values.
This basic building block could be used to implement feeds for example,
which was the original motivation.
Single-ownership is guaranteed by including the public key in the
mutable entries. Since those are effectively random there are no
collisions even if human-readable text is used as salt.
- The 8472
Post by s***@libero.itHi Arvid, can I have your opinion about some questions about dht_put/get
functions?
Post by s***@libero.itRight now we are able to put an item (let's say immutable one) on the DHT
and the hash of the entry is returned to us for later retrieval. So far, so
good. But if I place an item on the DHT only I am able to retrieve it later.
I'm searching for a way to put the item on the DHT and later somebody else
retrieves it, without knowing the hash of the whole entry, but just knowing the
"identifier" string as below.
Post by s***@libero.itLet me explain it better.
I do have an entry wich is a list made of three string (as an example)
Entry{ "identifier_string" , "string2" , "string3"}
Right now it is not possibile to return from the put operation the SHA1 of
the identifier string for later retrieval, I get the SHA1 of the flat, bencoded
entry.
Post by s***@libero.itIf that was able, a second person later, can retrive the whole entry just
by querying for the SHa1 of the identifier string.
Post by s***@libero.itp.s.: if you rename the "identifier_string", "keyword" there you got a why
to do some keyword searching on the DHT.
Post by s***@libero.itThanks in advance,
Erjon
------------------------------------------------------------------------------
Post by s***@libero.itMobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data
untouched!
Post by s***@libero.ithttps://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss