Skip to content
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

Use muliple DCRtime servers #23

Closed
degeri opened this issue Dec 20, 2018 · 7 comments
Closed

Use muliple DCRtime servers #23

degeri opened this issue Dec 20, 2018 · 7 comments
Labels
future question Further information is requested

Comments

@degeri
Copy link
Member

degeri commented Dec 20, 2018

Right now we are using decred.org's API. This is good for now. But for true decentralization we need to support and verify with multiple API end points. For this we should either let the user select an API or use client side randomness to determine from a list.

Also Lets say user submits a hash to server1. Then for verification the user should use server2 and server3.

Is this doable ?

Just something to keep in mind while writing the app.
This is not a priority right now please add the future tag to this.

@fernandoabolafio
Copy link
Member

@degeri I think that is not possible to timestamp a file in one server and verify it on another. The reason is that the timestamped file depends on the other files from the same "anchor batch" to calculate the Merkle root and verify that in the blockchain. So, as far as I know, the files aren't independently verifiable in the blockchain.

@degeri
Copy link
Member Author

degeri commented Dec 20, 2018

hmm ok.. So whats to stop manipulation ? I feel we are missing something here.

@marcopeereboom please impart your wisdom on us.

@degeri
Copy link
Member Author

degeri commented Dec 20, 2018

Once we have the merkle root, transaction hash and merkle path we should be able to verify right ?

@tiagoalvesdulce tiagoalvesdulce added question Further information is requested future labels Dec 20, 2018
@degeri
Copy link
Member Author

degeri commented Dec 21, 2018

https://matrix.to/#/!VFRvyndKpzcLrVslQD:decred.org/$154532346847299qkrmk:decred.org should be possible. I will do more research into this and suggest how we might do this.

@fernandoabolafio
Copy link
Member

@degeri just a correction to what I said earlier. The files are indeed independently verifiable in the blockchain as long you have merkle path + merkle root + file hash.
However, to verify a file with dcrtime, we justprovide the file hash because the server can match the file hash with the merkle path and merkle root, since it has recorded all the timestamping history.
So, unless the multiple dcrtime servers are synced, one cannot timestamp a file in a server and verify it in another just by providing the file hash.
What can be done is to verify the file using a standalone tool such as this one: https://github.com/decred/dcrtime/tree/master/cmd/dcrtime_checker.

@marcopeereboom
Copy link
Member

See decred/dcrtime#24

@fernandoabolafio
Copy link
Member

@degeri I am closing as I think this issue isn't pertinent anymore. Feel free to re-open it if there is still something you want to cover here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants