-
Notifications
You must be signed in to change notification settings - Fork 387
feat(gsoc): fine grained API #5497
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e5a7b0a
feat: add SOC fields headers and wrapped chunk caching
nugaon 7bbf91e
test: add SOC fields and wrapped chunk caching
nugaon 9f63b76
docs: openapi with minor version bump
nugaon 8b4d996
fix: linting
nugaon d38b6e8
refactor: warning log instead of debug
nugaon e411683
refactor: increase msg buffer to 2 and slow connection handling
nugaon 5ef413a
docs: openapi random access desctiption
nugaon 54df2e3
docs: default payload
nugaon a9921e3
fix: race issue on close
nugaon be9f2ac
fix: deduplication values in the header values
nugaon a504b5f
fix: context cancellation
nugaon 35b3533
test: remaining
nugaon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Deficiencies
Undocumented Fixed Byte Sizes: The OpenAPI spec description lists available fields but fails to specify the exact binary byte size for each fixed field:
address: 32 bytes
recoveredPubKey: 33 bytes (compressed secp256k1 public key)
identifier: 32 bytes
signature: 65 bytes (secp256k1 signature + recovery id)
wrappedAddress: 32 bytes
span: 8 bytes (uint64)
payload: variable (0 to 4096 bytes)
Without explicit field lengths, API consumers cannot parse multi-field binary streams without inspecting Bee source code.
Variable-Length Field Order Warning: If payload is placed before fixed-length fields (e.g. Swarm-Soc-Fields: payload,span), parsing span requires scanning from the end of the frame. The spec should clearly state that payload MUST be specified as the last field when requesting multiple fields.
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 don't think so, it is not necessary to be specified as the last field. see the PR comment above your review.