swarm-cli icon indicating copy to clipboard operation
swarm-cli copied to clipboard

Save hash with postage stamp in json file

Open 0xCardinalError opened this issue 1 year ago • 0 comments

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"
    }
}

0xCardinalError avatar Dec 15 '23 14:12 0xCardinalError