Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Latest commit

 

History

History
137 lines (103 loc) · 1.98 KB

metadata-specs.md

File metadata and controls

137 lines (103 loc) · 1.98 KB

Metadata Specification

Media File

struct Media {
  string data;
  string contentType;
  string protocol;
}

IPFS File

struct IPFSFile {

  /// CID is the content identifier for this IPFS file.
  ///
  /// Ref: https://docs.ipfs.io/concepts/content-addressing/
  ///
  string cid;

  /// Path is an optional path to the file resource in an IPFS directory.
  ///
  /// This field is only needed if the file is inside a directory.
  ///
  /// Ref: https://docs.ipfs.io/concepts/file-systems/
  ///
  string path;
}

Display

/// For EVT Display
struct Display {
  /// The name of the object. 
  ///
  /// This field will be displayed in lists and therefore should
  /// be short an concise.
  ///
  string name;
  
  /// A written description of the object. 
  ///
  /// This field will be displayed in a detailed view of the object,
  /// so can be more verbose (e.g. a paragraph instead of a single line).
  ///
  string description;
  
  /// A small thumbnail representation of the object.
  IPFSFile thumbnail;

  /// legal license of the object.
  string license;

  string from;

  string symbol;

  IPFSFile logo;
}

IPFS Image

struct IPFSImage {
  string url;
  string ipfsHash;
  string width;
  string height;
  string contentType;
}

IPFS Video

struct IPFSVideo {
  string url;
  string ipfsHash;
  string width;
  string height;
  string codec;
  string container;
  string contentType;
}

IPFS 3D Model

struct IPFS3DModel {
  string url;
  string ipfsHash;
  string length;
  string width;
  string height;
  string container;
  string contentType; // option: obj, gltf, fbx, glb
  string version;
}

Encrypted Key

struct EncryptedKey {
  string protocol; // option: newinfo@v1
  string method; // options: AES-128
  string encryptedValue;
}

ODI

struct ODI {
  IPFSImage avatar2d;
  IPFS3DModel avatar3d;
  string birth;
  string position;
}