Skip to content

feat: add blob/retrieve capability definition#52

Merged
alanshaw merged 5 commits intomainfrom
ash/feat/blob-retrieve
Oct 7, 2025
Merged

feat: add blob/retrieve capability definition#52
alanshaw merged 5 commits intomainfrom
ash/feat/blob-retrieve

Conversation

@alanshaw
Copy link
Member

@alanshaw alanshaw commented Oct 6, 2025

Adds the blob/retrieve capability as proposed here storacha/RFC#68

@alanshaw alanshaw requested a review from a team October 6, 2025 13:34
@alanshaw alanshaw requested a review from volmedo as a code owner October 6, 2025 13:34
Copy link
Member

@Peeja Peeja left a comment

Choose a reason for hiding this comment

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

Golden retrievers

LGTM with one semi-blocking question; feel free dismiss it if you've got a good answer.

}

type RetrieveBlob struct {
digest Multihash
Copy link
Member

Choose a reason for hiding this comment

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

question: Why put the digest inside another struct, rather than put it directly in the caveats? (Am I right that the RFC doesn't specify the caveats schema currently?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Just for consistency with types.Blob used in space/blob/add and space/content/retrieve.

})
}

func roundTripAgentMessage(t *testing.T, invs []invocation.Invocation, rcpts []receipt.AnyReceipt) message.AgentMessage {
Copy link
Member

Choose a reason for hiding this comment

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

thought: This isn't specific to this capability, right? Should we (separately) use this for other tests, too?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes...yes we really should.

Copy link
Member Author

Choose a reason for hiding this comment

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

#55

@alanshaw alanshaw merged commit 4fcb36a into main Oct 7, 2025
4 checks passed
@alanshaw alanshaw deleted the ash/feat/blob-retrieve branch October 7, 2025 15:00
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