![]() Finally, manifests can also be considered indexes, so it can be used to implement a simple key-value store, or alternatively, a database index. Manifests can also be mapped to a filesystem directory tree, which allows for uploading and downloading directories. The :ref:`BZZ URL schemes` assumes that the content referenced in the domain is a manifest and renders the content entry whose path matches the one in the request path. :dfn:`manifest` A manifest is a data structure describing file collections they specify paths and corresponding content hashes allowing for URL based content retrieval. In case of an encrypted file the reference has two equal-length components: the first 32 bytes are the content address of the encrypted asset, while the second 32 bytes are the decryption key, altogether 64 bytes, serialised as 128 hex bytes. This hash reference is a 32 byte hash, which is serialised with 64 hex bytes. For unencrypted content the file reference is the cryptographic hash of the data and serves as its content address. ![]() :dfn:`reference` A reference is a unique identifier of a file that allows clients to retrieve and access the content. The network layer only knows about chunks and has no notion of file or collection. Swarm defines 3 crucial notions: :dfn:`chunk` Chunks are pieces of data of limited size (max 4K), the basic unit of storage and retrieval in the Swarm. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |