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

Gossipsub message encoding #35

Open
thewoodfish opened this issue May 25, 2024 · 0 comments
Open

Gossipsub message encoding #35

thewoodfish opened this issue May 25, 2024 · 0 comments

Comments

@thewoodfish
Copy link
Member

During gossiping, messages are sent as bytes: Vec<u8>, hence they have to be encoded into that format.
The Vec<String> is broken down into bytes and sent over the wire. This can be even more flexible as we can have a codec, maybe cbor that encodes any data structure into bytes and decodes them on the other side. Simple and flexible.

@thewoodfish thewoodfish changed the title Gossipsub Codec Gossipsub message encoding May 25, 2024
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

No branches or pull requests

1 participant