gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] Decentralized database


From: Christian Grothoff
Subject: Re: [GNUnet-developers] Decentralized database
Date: Sun, 14 Jan 2018 23:38:02 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 01/13/2018 09:00 PM, Amirouche Boubekki wrote:
> On 2018-01-13 20:23, Amirouche Boubekki wrote:
>>
>> Anyway, I figured that I can use the high level fs service to implement
>> a prototype. Basically, vertex will be files and links will be keywords.
>> That way, a new vertex can link to an existing vertex without having
>> to update somehow the old vertex.
>>
> 
> Here is a demo of it would work:
> https://asciinema.org/a/aFqvf54ABpb2DllB0jFhPbvKh
> 
> Simply said:
> 
> $ gnunet-publish vertex1
> $ gnunet-pbulish vertex2 -k $(sha256sum vertex1 | cut -d ' ' -f 1)
> $ gnunet-pbulish vertex3 -k $(sha256sum vertex1 | cut -d ' ' -f 1)
> $ gnunet-pbulish vertex4 -k $(sha256sum vertex1 | cut -d ' ' -f 1)
> 
> Then to know what links to vertex1:
> 
> $ gnunet-search $(sha256sum vertex1 | cut -d ' ' -f 1)
> 
> WDYT, it's viable somehow?

Well, the original idea was a bit different:

$ gnunet-publish -t v1 -P pseudonym -N v2  vertex1
$ gnunet-publish -t v2 -P pseudonym -N v3  vertex2
$ gnunet-publish -t v3 -P pseudonym -N v4  vertex3
$ gnunet-publish -t v4 -P pseudonym -N v5  vertex4

Basically, if you search for "v1" of "pseudonym", you find "vertex1"
with the promise that a future version will be published as "v2".
gnunet-search then *automatically* adds 'v2' to the search list, finds
"vertex2" (and then adds "v3" to the keyword list, etc.).

Updates must all be signed by the same "pseudonym". "v1" is just
arbitrary text (as long as it is unique), here chosen to illustrate the
point.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]