ethersphere / swarm-cli

Manage your Bee node and interact with the Swarm network via the CLI
BSD 3-Clause "New" or "Revised" License
48 stars 21 forks source link

Save hash with postage stamp in json file #486

Open n00b21337 opened 8 months ago

n00b21337 commented 8 months ago

Currently, when we upload new data there is no record of our data and how it connects to stamp.

Would be nice if there is a simple JSON file that saves this when we upload.

So it would be JSON with stamp hash as the main key and under it, we should nest all the IDs of hashes that are connected with this stamp and ideally its some kind of Label:Hash pair so something like this should be our solution.

{
    "hashID_12345": {
        "Label1": "DataHash_A",
        "Label2": "DataHash_B",
        "Label3": "DataHash_C"
    },
    "hashID_67890": {
        "Label1": "DataHash_D",
        "Label2": "DataHash_E",
        "Label3": "DataHash_F"
    },
    "hashID_24680": {
        "Label1": "DataHash_G",
        "Label2": "DataHash_H",
        "Label3": "DataHash_I"
    }
}