Skip to content

Commit

Permalink
feat: blob protocol draft (#115)
Browse files Browse the repository at this point in the history
Based on #114. PR is written with UCAN 1.0 format and assuming
storacha/RFC#12 however in terms of
immediate implementation I suggest that we instead

1. Use `blob/add` instead of `/space/content/add/blob`
2. Use `web3.storage/blob/*` in place of `/service/blob/` 

I suggest above because I think it would make more sense to transition
to storacha/RFC#12 once we have [email protected]
implemented, because I suspect links to tasks vs invocations are going
to be a pain to deal with otherwise. This will give us cleaner break.

In terms of implementing `/service/blob/accept` and specifically how
does client signal that they've completed upload I suggest that we do
whichever is easiest option from following two:

1. Make client sent second `blob/add` invocation after they've done
upload so we can perform a lookup.
2. Add another temp capability with empty output either very specific
like `blob/add/poll` or very general like `invocation/wake { task: CID }
`.

---------

Co-authored-by: Vasco Santos <[email protected]>
  • Loading branch information
Gozala and vasco-santos authored Mar 22, 2024
1 parent e14b3c1 commit 9cc1b03
Show file tree
Hide file tree
Showing 2 changed files with 422 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/words-to-ignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,5 @@ SHA2-256
noop
Pre
unlinked
2MiB
ok
Loading

0 comments on commit 9cc1b03

Please sign in to comment.