在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:decentraland/content-service开源软件地址:https://github.com/decentraland/content-service开源编程语言:Go 94.3%开源软件介绍:IMPORTANTThis repository is outdated and has not been used is a while. If you want to see how Decentraland's distributed content network works, check out this repository. Content ServiceThe content service is used to store and distribute content in decentraland that's manipulated by land owners Our vision of a decentralized platform can't rely on a single centralized server storing an only copy of the virtual world's content. The Content Service allows anyone to host their own instance of the server that stores the world data. Today, the Decentraland client fetches content from a single instance of the content server that's maintained by us. In the future, we want the client to fetch data from multiple replicas of the content, this will guarantee its availability and fast download speeds, independently of the location. The content hosted in each server includes all the files that make up Decentraland scenes, including .ts scripts, 3D models, texture images, audio files and videos. Currently, each server stores the entirety of the data of all of Genesis city. In future releases of the content service, you'll be able to host a server that only holds the data for specific parcels, to ensure that your scene is always available without depending on any third party. Each file stored in the content server is cryptographically signed by the parcel owner's key, and the contents of the file are processed to generate a unique hash code, using the same algorithm that IPFS uses to generate its CIDs. The content server has endpoints that you can send requests to, to fetch data and to validate the authenticity of the signatures on each file. Technical overviewNote: As the original idea was distributing the content through ipfs, all content is still identified by the corresponding hash or CID (though support for ipfs is on hold). Content is organized by scene and queried by parcel. When querying content, the client must ask for all the scenes that at least partially overlap with a given set of parcels, and then all full scenes need to be downloaded. For uploading, content must be signed by the owner or update operator of the scene, and CIDs must be calculated for every file in the scene. The upload process may corrupt scenes, so the client is responsible for checking if a given scene is still valid by checking that all parcels that are used by the scene still belong to the scene. This consideration makes working with this API a little bit tricky. RequirementsThe following dependencies need to be installed to run a content service server. Setup git hooks Environment for development
ConfigurationTo configure the service, edit the Note: If you use RunningFirst start Redis:
Then build the project:
You can instead build and run with a single command:
Alternatively to docker, you can build and run the server with
API DocumentationReplicationTo replicate a
You will recieve a prompt to input the map coordinates for the NW and SE parcels. This program connects to the server url provided in Copyright infoThis repository is protected with a standard Apache 2 license. See the terms and conditions in the LICENSE file. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论