Adamant-im / AIPs

ADAMANT Improvement Proposal repository
Creative Commons Zero v1.0 Universal
288 stars 11 forks source link

AIP-18: Decentralized file transfer #55

Open adamant-al opened 5 months ago

adamant-al commented 5 months ago

Discussing https://github.com/Adamant-im/AIPs/pull/54

adamant-al commented 5 months ago

Consider creating a separate preview object and removing file_ prefixes:

{
  "files": [
    {
      "preview": {
        "id": "String",
        "type": "String",
        "size": Int64,
        "nonce": "String",
        "resolution": [Float, Float]
      },
      "id": "String",
      "type": "String",
      "size": Int64,
      "name": "String",
      "nonce": "String",
      "resolution": [Float, Float]
    }
  ],
  "storage": "String",
  "comment": "String"
}
adamant-al commented 5 months ago

Consider converting storage to an object.