在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:kf106/ipfs-submarine开源软件地址:https://github.com/kf106/ipfs-submarine开源编程语言:Shell 100.0%开源软件介绍:IPFS SubmarineSummary: Bash scripts with commands to submarine folders and files on Ubuntu 20.04. The following repository contains helper scripts to allow you to submarine folders and files. Submarining is the process of obtaining and publishing an IPFS folder without publishing the files contained within the folder. This is useful for, for example, an NFT project using the OpenZeppelin ERC721 contract, where images are enumerated using:
and the contract deployer only wants to reveal the underlying images over time, rather than all at once. Some IPFS gateway companies offer this as a paid service, but the following project allows anyone to do this for free. For more information and a walk-through of how this works, see my article on LinkedIn. OverviewThe scripts set up two instances of the IPFS, one which is kept private, and one which is a public gateway out to the rest of the IPFS. The image folder is added and pinned in the private IPFS swarm, and then commands are avaialbe for copying parts but not all of the files underlying a folder to the public gateway. To useRun the IPFS setup script:
This will set up a private IPFS instance which is not running as a background process, but can still be used by the other scripts to submarine and reveal files. It also starts a public IPFS server, the control panel of which is found at http://127.0.0.1/5001. To submarine a particular folder, run:
To reveal a particular file from the folder, run:
ExampleThe installation script provides the option to generate five random files in a folder called Run Then run Known limitationsThe system only supports folders containing up to 5697 files. See issue 2 for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论