OffchainLabs / nitro

Nitro goes vroom and fixes everything
Other
743 stars 438 forks source link

Feature: Adding google cloud storage support to DAS #1989

Open alberthuang24 opened 10 months ago

alberthuang24 commented 10 months ago

Is your feature request related to a problem? Please describe. Currently we only support uploading das data to aws s3 or locally, we would like to support more cloud providers for storage so that we can decentralize the risk of centralized failures and reduce maintenance costs.

Describe the solution you'd like Add google cloud storage(GcsStorageService)

Tristan-Wilson commented 10 months ago

Hi, when we wrote the DAS code we envisioned that entities that wanted to run a Data Availability Committee server or a mirror may want to write their own storage backends, so we made it so that there are just a few simple interfaces that need to be implemented https://github.com/OffchainLabs/nitro/blob/09d45c13054ef649239c82519a64fcc2a907c9c0/das/das.go#L23

https://github.com/OffchainLabs/nitro/blob/09d45c13054ef649239c82519a64fcc2a907c9c0/das/das.go#L29

https://github.com/OffchainLabs/nitro/blob/09d45c13054ef649239c82519a64fcc2a907c9c0/das/das.go#L34

This is something we'd be happy to accept third-party contributions for. Otherwise we will get to this when we can, but it's not currently prioritized.