livepeer / go-tools

Utility packages used across Livepeer Go repositories.
0 stars 2 forks source link

Web3.storage driver #11

Closed leszko closed 1 year ago

leszko commented 1 year ago

Add web3.storage driver.

fix https://github.com/livepeer/catalyst/issues/375


How does it work?

  1. Every SaveData() does the following:
    1. Converts a file into a CAR file and sends it to web3.storage (the file is already uploaded and has its own CID, but it has no notion of any directory structure).
    2. Stores the file CID in the in-memory DAG structure
    3. The DAG structure is identified by a unique string pubId
  2. Calling Publish() uploads the whole dag directory structure into web3.storage and therefore makes all the HLS manifest files usable.

Additional comments