Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ipld/specs
Content-addressed, authenticated, immutable data structures
https://github.com/ipld/specs
content-addressed graph hash ipfs ipld linked-data
Last synced: 14 days ago
JSON representation
Content-addressed, authenticated, immutable data structures
- Host: GitHub
- URL: https://github.com/ipld/specs
- Owner: ipld
- License: other
- Archived: true
- Created: 2016-07-25T09:16:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-28T23:04:58.000Z (over 2 years ago)
- Last Synced: 2024-09-18T02:12:30.348Z (5 months ago)
- Topics: content-addressed, graph, hash, ipfs, ipld, linked-data
- Language: JavaScript
- Homepage:
- Size: 10.4 MB
- Stars: 592
- Watchers: 59
- Forks: 108
- Open Issues: 70
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
!!!
This document has **moved**.
You'll now find information like this in the [ipld/ipld](https://github.com/ipld/ipld/) meta-repo,
and published to the web at https://ipld.io/ .All documentation, fixtures, specifications, and web content is now gathered into that repo.
Please update your links, and direct new contributions there.!!!
----
IPLD Specifications
===================The goal of IPLD is to enable decentralized data-structures that are universally addressable and linkable which in turn will enable more decentralized applications.
These data-structures allow us to do for data what URLs and links did for HTML web pages.
Read more about the principles that are guiding the ongoing development of IPLD in **[IPLD Foundational Principles](FOUNDATIONS.md)**.IPLD is not a single specification, it is a set of specifications.
Many of the specifications in IPLD are inter-dependent.![What is IPLD?](./what_is_ipld.png)
## IPLD Blocks
The block layer encompasses all content addressed block formats and specifies how blocks are addressed, how they self-describe their codec for encoding/decoding, and how blocks link between each other.
IPLD blocks alone do not define data structures or types, although many codecs may convert these formats into native types, there are no type requirements or assurances about types at the block layer.
**Documents:**
| | |
|-----|------|
| [Concept: Block](block-layer/block.md) | [block-layer/block.md](block-layer/block.md) |
| [Concept: Content Addressability](concepts/content-addressability.md) | [concepts/content-addressability.md](concepts/content-addressability.md) |
| [Concept: Multihash](block-layer/multihash.md) | [block-layer/multihash.md](block-layer/multihash.md) |
| [Specification: Content Addressable aRchives (CAR / .car)](block-layer/content-addressable-archives.md) | [block-layer/content-addressable-archives.md](block-layer/content-addressable-archives.md) |
| [Specification: Graphsync](block-layer/graphsync/graphsync.md) | [block-layer/graphsync/graphsync.md](block-layer/graphsync/graphsync.md) |## IPLD Codecs
Codecs serve as an intermediary between raw bytes and the IPLD Data Model. They determine how data is converted to and from the Data Model.
Codecs vary in the completeness in which they can represent the IPLD Data Model. [DAG-CBOR](block-layer/codecs/dag-cbor.md) and [DAG-JSON](block-layer/codecs/dag-json.md) are native IPLD codecs that currently enable the most complete form of the Data Model. Their base codecs, CBOR and JSON, are also valid IPLD codecs, are unable to represent some Data Model kinds on their own, in particular the Link (CID) kind (and Bytes for JSON), so DAG-JSON and DAG-CBOR provide mechanisms to represent these kinds.
IPLD can operate across a broad range of content-addressable codecs, including Git, Ethereum, Bitcoin, and more. [DAG-PB](block-layer/codecs/dag-pb.md) is a legacy IPLD format that is still actively used for representing file data for [IPFS](https://ipfs.io).
| | |
|-----|------|
| [Concept: Serialization and Formats](block-layer/serialization-and-formats.md) | [block-layer/serialization-and-formats.md](block-layer/serialization-and-formats.md) |
| [Specification: CIDs](block-layer/CID.md) | [block-layer/CID.md](block-layer/CID.md) |
| [Specification: DAG-CBOR](block-layer/codecs/dag-cbor.md) | [block-layer/codecs/dag-cbor.md](block-layer/codecs/dag-cbor.md) |
| [Specification: DAG-JSON](block-layer/codecs/dag-json.md) | [block-layer/codecs/dag-json.md](block-layer/codecs/dag-json.md) |
| [Specification: DAG-PB](block-layer/codecs/dag-pb.md) | [block-layer/codecs/dag-pb.md](block-layer/codecs/dag-pb.md) |
| [Specification: DAG-JOSE](block-layer/codecs/dag-jose.md) | [block-layer/codecs/dag-jose.md](block-layer/codecs/dag-jose.md) |## The IPLD Data Model
The Data Model describes a set of base required types to be implemented by a subset of IPLD codecs.
With these basic types authors can create various single-block data structures which can be read with predictable paths and selectors.
With just the data model, several data structures can be authored and put into a single block.
These data structures can also link to one another, but a *single* collection (Map or List) cannot be spread across many blocks with only the Data Model.Since different systems and transports may impose block size limits (often 2mb or more) in order to control memory usage, larger collections need to be sharded over many blocks at the Schema Layer.
**Documents:**
| | |
|-----|------|
| [Specification: IPLD Data Model](data-model-layer/data-model.md) | [data-model-layer/data-model.md](data-model-layer/data-model.md) |
| [Specification: IPLD Paths](data-model-layer/paths.md) | [data-model-layer/paths.md](data-model-layer/paths.md)
| [Specification: IPLD Selectors](selectors/selectors.md) | [selectors/selectors.md](selectors/selectors.md) |### Schemas and Advanced Data Layouts
IPLD Schemas define a mapping from the Data Model to instantiated data structures comprising complex layouts.
Schemas add the ability to extend the IPLD Data Model to the wide variety of types required for typical programmatic interaction with a data source without the need to implement custom translation abstractions.Schemas will also serve as an enabling layer for complex multi-block data structures via Advanced Data Layouts by providing stability and consistency of data model use within individual blocks and defined interaction points for the logic required for building and interacting with advanced data layouts, such as multi-block Maps, Lists and Sets.
**Documents:**
| | |
|-----|------|
| [Concept: IPLD Multi-block Collections](data-structures/multiblock-collections.md) | [data-structures/multiblock-collections.md](data-structures/multiblock-collections.md) |
| [Specification: IPLD Schemas](schemas/README.md) | [schemas/README.md](schemas/README.md) |
| [Specification: HashMap](data-structures/hashmap.md) | [data-structures/hashmap.md](data-structures/hashmap.md) |
| [Specification: FlexibleByteLayout](data-structures/flexible-byte-layout.md) | [data-structures/flexible-byte-layout.md](data-structures/flexible-byte-layout.md) |## Specification document status
Specification documents in this repository fit into one of two categories and have one of three possible statuses:
- Prescriptive
- Exploratory
- Draft
- Final
- Descriptive
- Draft
- Final**Prescriptive** specifications are intended to describe future implementations or, in some cases, changes to existing implementations.
**Descriptive** specifications describe existing behavior.
In many cases these specifications are not intended to drive new implementations and are only written to understand existing behaviors.Documents labelled "Specification" in this repository will also be labelled with a descriptor that indicates the category and status.
e.g. _"Status: Prescriptive - Draft"_ or _"Status: Descriptive - Final"_.## Design documentation & Library recommendations
Included in this repository are some documents which chronicle our process in developing these specs,
as well as some documents which are advisory to library authors (but not specifications, per se):- [design/...](/design) -- gathers all such documents
- [design/history/...](/design/history) -- gathers research work and pre-spec content and notes
- [design/libraries/...](/design/libraries) -- gathers recommendations for library authorsThese documents may be useful to read for those who want to participate more deeply in the
design and specification processes (as well as implementation processes!) of IPLD.## Contributing & Discussion
Suggestions, contributions, criticisms are welcome.
Discussion of specifications happens in [this repository's issues](https://github.com/ipld/specs/issues) or via pull request. Discussion of IPLD more generally happens in the [IPLD repository](https://github.com/ipld/ipld/issues).
Check out our [contributing document](https://github.com/ipld/ipld/blob/master/contributing.md) for more information on how we work, and about contributing in general.
Please be aware that all interactions related to IPLD are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).## Governance
All changes to documents must take place via pull request.
Pull requests are governed by different rules depending on the document type and status of that document:
Specifications:
* Exploratory Stage
* Authors can merge changes into exploratory specifications at their own discretion
* Exploratory specifications live in the `design` directory until they reach the draft stage. Specs
names should include an alternative friendly naming convention (`-A`, `-B`, etc) while in this stage.
* Draft Stage
* Authors must attempt to reach a consensus between all active participants before a merge
* If no objections are raised in a 48 hours period changes can be merged
* If objections cannot be resolved the change can be voted on by the IPLD Team
* Final Stage
* Improvements that have a consensus can be merged
* Changes to behavior should not be merged unless absolutely necessary and agreed upon by a vote of the IPLD TeamConcepts and other documents (including README.md):
* Authors must attempt to reach a consensus between all active participants before a merge
* If no objections are raised in a 48 hours period changes can be merged
* If objections cannot be resolved the change can be voted on by the IPLD Team## Glossary
* **DAG**: Short for ["Directed Acyclic Graph."](https://en.m.wikipedia.org/wiki/Directed_acyclic_graph)
It's a tree where two branches can point to the same sub-branch, but only in one direction
so there's no possibility of recursion.## IPLD Team
The IPLD Team consists of currently active IPLD developers.
* [@mikeal](https://github.com/mikeal)
* [@vmx](https://github.com/vmx)
* [@warpfork](https://github.com/warpfork)
* [@rvagg](https://github.com/rvagg)
* [@ribasushi](https://github.com/ribasushi)
* [@mvdan](https://github.com/mvdan)## License
This repository is only for documents.
All of these are licensed under the [CC-BY-SA 3.0](https://ipfs.io/ipfs/QmVreNvKsQmQZ83T86cWSjPu2vR3yZHGPm5jnxFuunEB9u) license, © 2016 Protocol Labs Inc.