Find out who uploaded a file?


#1

Hey LightstreamsDevs,

I am part of the student group and we use the lightstreams testnet in our project. We would like to know if it is possible to find out who the uploader of a specific hash was. We are struggling right know with the issue, the downloading account doesn’t know from which account a file was uploaded. We have to ensure that a specific hash is bound to a specific (owner) account. For example: An owner grants admin permission to a user and this user grants read permission to a third user. After the second user passes the third one the file hash, how can the third one verify it’s the original file from the owner?

Thanks in advance


#2

Hey dapper!

Sorry for late reply, we were working on a feature to support your need! And here it is!

A new command leth storage meta was introduced that you can call and it will tell you everything you need to know about the secured private file.

The output will be:

{"filename":"secret_file.txt","ext":"txt","owner":"0xadC486F16F003897fb927e22438cb1b820f79879","hash":"QmRnXxBJg3NjXzuTi91iNYcMff4oz4NwjN7fgtBXp2UbG9","acl":"0x3cb99420c7F16f00ef41B5ace9e0C815F3736879"}

Upgrade please to the latest Leth version: 0.7.0-alpha Meta && PoA Test Ntw

Here is the full documentation: http://wiki.lightstreams.network/getting-started-with-lightstreams-node/#reading-the-public-meta-file