https://github.com/trueblocks/pintest
https://github.com/trueblocks/pintest
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/trueblocks/pintest
- Owner: TrueBlocks
- License: gpl-3.0
- Created: 2022-07-03T00:33:14.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-04T01:03:02.000Z (almost 4 years ago)
- Last Synced: 2025-01-18T21:30:23.319Z (over 1 year ago)
- Language: Go
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IPFS Pin Test
1. Create a package called `pinning` or `ipfs`
2. Make a package that we can use with these endpoings:
| Function | Description |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| **pinning.Add(fullPath)** | Given a full path to a file, pins the file locally (if IPFS is running) and remotely (assume user has the right key) |
| **pinning.List(remoteName)** | List pins on remote service |
| **pinning.Remove(fullPath)** | Remove a pin from local or remote service |
These are totally off the top of my head. We can expand as needed.
------
An alternative to this would be to find a package that already exists and does these things. In that case, this repo can become an example of how to use such a package.
Questions to be answered:
--------------------------
1. Zipping the files means we can only create them on one operating system (either Linux or Mac) because of this (https://unix.stackexchange.com/questions/570477/gzip-doesnt-produce-the-same-compressed-result-on-macos-vs-linux). I have a feeling that this extends across other linuxes as well as across Mac/Linux. It may not be worth ZIPing. File size comparison:
| Type | Zipped | Not Zipped |
|----|----|----|
|Blooms|2.314 GB | 3.067 GB |
|Index|41.560 GB|74.238 GB|
2. What do domains do in Pinata - https://ipfs.unchainedindex.io/ipfs, https://sepolia.unchainedindex.io/ipfs. I have a feeling they don't do much.
3. Could we 'package up' larger files for the `chifra init --all` case? 0-1,000,000, 1,000,000-2,000,000, etc.