-
Notifications
You must be signed in to change notification settings - Fork 21
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
A stop gap solution for blob implementation until invocation spec #1339
Comments
In terms of implementing
|
Spec is written with UCAN 1.0 format and assuming storacha/RFC#12 however in terms of immediate implementation I suggest that we instead
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. |
I wrote some comments on how I imagine this could work, but I think we need to try to determine if it is in fact viable. |
We aren't missing size because https://github.com/web3-storage/specs/blob/9cc1b039431ed2853b30e5874c5fe3a1acf7876e/w3-blob.md?plain=1#L263-L267 I wonder why do we care about I also would suggest say that we can simply require that linked task |
I did little bit of archeological digging to try to find out where the issuer is coming from and it looks like it came from this PR storacha/w3infra#48 Which in turn seems to have come from hugo's table https://github.com/web3-storage/w3up/blob/cc0f4f44c06a5884c6af50cf739dad6164d8e468/packages/access-api/migrations/0000_create_spaces_table.sql So I have feeling that nothing really depends on this and we could probably drop the field, but we probably need to change types and see if there is anything that depends an that field |
I'm not sure I fully understand the question here. But I'll try my best to address what I think you're getting at a. We can derive CAR cid from the blob multihash, simply by calling
|
Thanks for the follow ups @Gozala and looking into the issue thing. I think we are quite aligned on 1, 3 and 4 ✅ I will follow up on points for the remaining discussion items |
on point 5 @Gozala your assumptions were kind of right on for the first part. So yes, my proposal was to do exactly that "simply by calling Link.create with CAR.code and multihash", but the general question/discussion topic is IF and HOW we want to deal with old world. More specifically for both stores we have at the moment: EDIT: #1343 |
@Gozala regarding point 2, as well as your thoughts provided on #1340 (comment):
|
Per #1339 (comment) this PR deprecates `issuer` field from table record.
See
blob protocol
storacha/specs#115blob/*
instead ofspace/content/*/blob
andweb3.storage/blob/*
instead ofservice/blob/*
for new capabilities until invocation spec given we are still not at UCAN 1.0 and links to tasks vs invocations are going to be a pain to deal with otherwise ✅a. blob/add queues for allocation if content is not already allocated in given space (resource of invocation)
b. blobAllocateQueue consumer reads blob requests for allocation and self invokes (by w3s) blob/allocate , which if space has enough bytes available will insert in an allocationStore record with content+space.
a. we currently have carpark-prod-0 in R2/S3. When we perform a store/add we check bytes are there so that we ask users to write things.
b. we now move to write things by multihash and I am wondering if you have any thoughts on deduping here? Could we simply test multihash with CAR codec and give location claim?
c. actually same also happen on our storeTable today. We key it by the link…
The text was updated successfully, but these errors were encountered: