Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: w3filecoin spec separate capabilities to queue and dequeue #73

Conversation

vasco-santos
Copy link
Contributor

Per discussion in #71 (comment) , this PR separates capabilities of queue and enqueue into different ones, so that we can have guarantee that storefront requester are who they are by sending their DID in the with field, that can then be used in the nb field for the dequeue.

@vasco-santos
Copy link
Contributor Author

@Gozala part of me feels that we could do this just for the aggregator actor. However, it also felt weird that same pattern was handled differently and ended up changing the 3 of them. Thoughts?

@@ -94,7 +94,7 @@ sequenceDiagram

Storefront SHOULD propagate submitted pieces into Filecoin Storage Providers by forwarding them to an aggregator.

The Aggregator MUST queue offered pieces for an aggregation and issue a signed receipt proving that submitted piece has been `pending`. Issued receipt MUST link to a followup task (using `.fx.join` field) that either succeeds with inclusion proof (if the piece was included into an aggregate) or fail, in order to allow state lookup by its receipt.
The Aggregator MUST queue offered pieces for an aggregation and issue a signed receipt proving that submitted piece is `pending` to be added. Issued receipt MUST link to a followup task (using `.fx.join` field) that either succeeds with inclusion proof (if the piece was included into an aggregate) or fail, in order to allow state lookup by its receipt.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

succeeds with inclusion proof

Is this part TBC? I'm not sure I saw where this was defined in this spec.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will include it. But still needs to be added to the receipt once we know the format.

@vasco-santos vasco-santos merged commit c5026e4 into main Aug 29, 2023
2 checks passed
@vasco-santos vasco-santos deleted the fix/w3filecoin-spec-separate-capabilities-to-queue-and-enqueue branch August 29, 2023 10:11
vasco-santos added a commit to storacha/w3up that referenced this pull request Aug 30, 2023
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.

2 participants