Skip to content

Conversation

@mfw78
Copy link

@mfw78 mfw78 commented Mar 3, 2025

This PR revises the wire-level protocol communication used within Swarm so as to be comprehensively type-safe, building upon SWIP-26. It critically:

  1. Unifies types across the protobufs used within Swarm.
  2. Makes use of chunk types and versions so as to move heavy marshalling work from the implementations to protobuf libraries, reducing client code and therefore minimising potential errors.
  3. Enforces a framework of stateless vs stateful protocols, providing a methodology by which to class protocols and ensure strongly typed messaging, eliminating any need for inference within the protocol.

The above reduces buffer overflow attacks, creates deterministic memory footprints, simplifies client development and much more ❤️

@tamas6 tamas6 assigned tamas6 and zelig and unassigned tamas6 Mar 6, 2025
@zelig zelig changed the title feat(swip-27): strictly typed wire-level messages add swip-27: strictly typed wire-level messages Apr 23, 2025
@zelig zelig assigned mfw78 and unassigned zelig Apr 23, 2025
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