Skip to content

feat: pass aggregate group to dealer#689

Open
alanshaw wants to merge 2 commits intomainfrom
ash/feat/pass-grouping-info-to-dealer
Open

feat: pass aggregate group to dealer#689
alanshaw wants to merge 2 commits intomainfrom
ash/feat/pass-grouping-info-to-dealer

Conversation

@alanshaw
Copy link
Copy Markdown
Member

This PR alters the dealer aggregate/offer and aggregate/accept invocation caveats such that they take an optional "group" string, which is passed on to Spade.

The aggregator already has the concept of grouping for aggregates. It ensures data from different storefronts is segregated. i.e. it segregates forge aggregates from hot network aggregates. After an aggregate has been created it is submitted to the delaer, whose job it is to get the data into a filecoin deal. The group information is lost here.

Now, in this PR, the group is passed to the dealer. The idea is that the dealer passes this grouping information to Spade in the (currently unused) Collection parameter. It'll allow Spade to query the correct network to find the node(s) the blob is stored on, so that Spade can obtain a delegation for reading the content that can be passed on to the Filecoin SP.

refs storacha/spade#15
refs storacha/spade#16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant