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: cid for filecoin offer must be raw #1450

Merged
merged 1 commit into from
May 14, 2024

Conversation

vasco-santos
Copy link
Contributor

As we previously decided, filecoin/offer should receive raw CIDs #1408 (comment) so that everything works out of the box and Blobs can be read from roundabout for validation + from SPs

@vasco-santos vasco-santos force-pushed the fix/cid-for-filecoin-offer-must-be-raw branch from 28d1acf to 14a39ac Compare May 14, 2024 12:00
@vasco-santos vasco-santos force-pushed the fix/cid-for-filecoin-offer-must-be-raw branch 3 times, most recently from c139b75 to 0659a4c Compare May 14, 2024 12:04
The blob index logic should be an independent module as it will be used
in both client and service code.

---------

Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>
@vasco-santos vasco-santos force-pushed the fix/cid-for-filecoin-offer-must-be-raw branch from 0659a4c to ca8e7a3 Compare May 14, 2024 12:06
@@ -134,12 +134,15 @@ async function uploadBlockStream(
const bytes = new Uint8Array(await car.arrayBuffer())
// Invoke blob/add and write bytes to write target
const multihash = await Blob.add(conf, bytes, options)
// Should this be raw instead?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
// Should this be raw instead?

@vasco-santos vasco-santos merged commit c3dd7b5 into main May 14, 2024
3 checks passed
@vasco-santos vasco-santos deleted the fix/cid-for-filecoin-offer-must-be-raw branch May 14, 2024 12:15
travis added a commit that referenced this pull request May 14, 2024
🤖 I have created a release *beep* *boop*
---


##
[14.1.0](upload-client-v14.0.0...upload-client-v14.1.0)
(2024-05-14)


### Features

* add blob protocol to upload-client
([#1425](#1425))
([49aef56](49aef56))


### Fixes

* cid for filecoin offer must be raw
([#1450](#1450))
([c3dd7b5](c3dd7b5))


### Other Changes

* appease linter
([782c6d0](782c6d0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Travis Vachon <travis.vachon@protocol.ai>
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.

3 participants