Skip to content

Latest commit

 

History

History
77 lines (57 loc) · 1.63 KB

w3-space.md

File metadata and controls

77 lines (57 loc) · 1.63 KB

Space

status:reliable

Editors

Authors

Abstract

A Space can be defined as a namespace for stored content. It is created locally, offline, and associated with a cryptographic key pair (identified by the did:key of the public key). Afterwards, a space MAY be registered with a web3.storage account and providers MAY be added to the space.

Language

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC2119.

Capabilities

space/info

Get information about a given space, such as registered providers.

did:key:zAliceAgent invokes space/info capability provided by did:web:web3.storage

{
  "iss": "did:key:zAliceAgent",
  "aud": "did:web:web3.storage",
  "att": [
    {
      "with": "did:key:zAlice",
      "can": "space/info"
    }
  ],
  "prf": [],
  "sig": "..."
}

Space Info Failure

{
  "ran": "bafy...spaceInfo",
  "out": {
    "error": {
      "name": "SpaceUnknown"
    }
  }
}

Space Info Success

{
  "ran": "bafy...spaceInfo",
  "out": {
    "ok": {
      "did": "did:key:zAlice",
      "providers": [
        "did:web:free.web3.storage"
      ]
    }
  }
}