Skip to content

Add API for exporting certificate chain for Filecoin snapshots #480

@Stebalien

Description

@Stebalien

Meta

This issue used to be the placeholder for "augmenting Filecon snapshots with F3 information". Since Forest owns Snapshot creation/publishing for the network, they are taking the lead here and that work is being tracked in ChainSafe/forest#5627 .

This issue has been downscoped to just cover the work needed in go-f3. Lotus and Forest items will be in their respective repos.

Specifically what's needed from go-f3

API for exporting the certificate chain so that Forest and Lotus snapshot generation code can include the certificate chain in their exports per the to-be-designed snapshot format.

Information before this issue was downscoped

We need to store the following in our Filecoin snapshots once we pass the F3 bootstrap epoch.

  1. The current F3 manifest.
  2. The power table for the bootstrap epoch - 900.
  3. All finality certificates we currently have.
  4. Power table deltas for all epochs between the last finality certificate and the first epoch included in the snapshot (if any). This should only be required if F3 falls behind EC.
  • I've dropped the F3 manifest because this will be baked into clients (normally). This will cause a few issues when testing (nodes may start with the wrong manifest), but they'll quickly receive the correct manifest from the network and switch to it).
  • I've dropped the initial power table. Eventually, this will be shipped with clients (first release after F3 genesis) but, for now, it can be fetched over the network given the first finality certificate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions