https://github.com/ceramicnetwork/tipsync-poc
PoC of the future TipSync protocol
https://github.com/ceramicnetwork/tipsync-poc
Last synced: about 1 year ago
JSON representation
PoC of the future TipSync protocol
- Host: GitHub
- URL: https://github.com/ceramicnetwork/tipsync-poc
- Owner: ceramicnetwork
- Archived: true
- Created: 2022-04-22T14:03:27.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-15T23:48:42.000Z (almost 3 years ago)
- Last Synced: 2025-05-08T10:14:20.191Z (about 1 year ago)
- Language: TypeScript
- Size: 467 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Before running
```pnpm install && pnpm run build```
## Running
`node lib/src/1-providers.js`
A node advertises itself as a provider for a CID. We then find it as the provider for the CID.
`node lib/src/2-multinode.js`
We have two pairs (ipfs + libp2p) of nodes here. Let's call them A and B. We advertise `α` on `A`, and `β` on `B`.
We then try to find a provider for `α` from `B`, and a provider for `β` from `A`.
`node lib/src/3-fetch.js`
The setup here is similar to `2-multinode.js` file. After finding a provider, a node makes a `fetch` request to it,
expecting a response. Node `B` makes a request for `α` to node `A`. Node `A` makes a request for `β` to node `B`.
Expected response is a CID of a requested StreamID.