在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipld/specs开源软件地址:https://github.com/ipld/specs开源编程语言:JavaScript 97.3%开源软件介绍:!!! This document has moved. You'll now find information like this in the 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 SpecificationsThe 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. IPLD is not a single specification, it is a set of specifications. Many of the specifications in IPLD are inter-dependent. IPLD BlocksThe 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: IPLD CodecsCodecs 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 and DAG-JSON 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 is a legacy IPLD format that is still actively used for representing file data for IPFS. The IPLD Data ModelThe 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:
Schemas and Advanced Data LayoutsIPLD 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: Specification document statusSpecification documents in this repository fit into one of two categories and have one of three possible statuses:
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 recommendationsIncluded 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):
These 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 & DiscussionSuggestions, contributions, criticisms are welcome. Discussion of specifications happens in this repository's issues or via pull request. Discussion of IPLD more generally happens in the IPLD repository. Check out our contributing document 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. GovernanceAll 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:
Concepts and other documents (including README.md):
Glossary
IPLD TeamThe IPLD Team consists of currently active IPLD developers. LicenseThis repository is only for documents. All of these are licensed under the CC-BY-SA 3.0 license, © 2016 Protocol Labs Inc. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论