-
Notifications
You must be signed in to change notification settings - Fork 17
fix: only send necessary proofs in retrieval auth delegation #357
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,8 @@ module github.com/storacha/guppy | |
|
|
||
| go 1.25.3 | ||
|
|
||
| replace github.com/storacha/go-ucanto => ../go-ucanto | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will update this reference when the changes are merged and tagged in go-ucanto. CI builds will fail till then.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can refer to the commit by sha instead, and CI should work. (Waiting to merge until that's pointing to a real release is still a good idea, though, even if we haven't been consistent about that.)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer the CI screaming at me so that I don't forget 😅 |
||
|
|
||
| require ( | ||
| github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef | ||
| github.com/briandowns/spinner v1.23.2 | ||
|
|
@@ -115,6 +117,7 @@ require ( | |
| github.com/multiformats/go-multiaddr-dns v0.4.1 // indirect | ||
| github.com/multiformats/go-multistream v0.6.0 // indirect | ||
| github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | ||
| github.com/patrickmn/go-cache v2.1.0+incompatible // indirect | ||
| github.com/paulmach/orb v0.11.1 // indirect | ||
| github.com/pelletier/go-toml/v2 v2.2.4 // indirect | ||
| github.com/pierrec/lz4/v4 v4.1.22 // indirect | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should pruning be part of the
client.Proofs(...)call? Perhaps as an option?If no then please can we also add this to the gateway command?
guppy/cmd/gateway/serve.go
Line 178 in d1d1504
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we not use
SelectProofsinstead? It's a waste of work to create and sign a delegation that is subsequently thrown away.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think leaving
client.Proofsas just a "query and filter proofs from store" API is cleaner. I added pruning to the gateway serve command.Is this reply satisfactory?