Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

P2P Message Encoding/Decoding #6

Open
sambarnes opened this issue Jul 12, 2019 · 0 comments
Open

P2P Message Encoding/Decoding #6

sambarnes opened this issue Jul 12, 2019 · 0 comments

Comments

@sambarnes
Copy link
Owner

sambarnes commented Jul 12, 2019

Currently all p2p messages in factomd are encoded using go's gob package. Unfortunately it's rather go centric, and attempts to port to python are incomplete. In the link posted, most types are implemented for encoding/decoding, however struct encoding is not implemented.

Right now, hydra just gets forwarded decoded p2p messages from a local factomd node.

Options moving forward:

  • Wait for factomd to switch to protocol buffers to be more language agnostic
  • Dive into gob struct encoding and implement it manually, forking the pygob package
  • Abstract away the p2p code by just making a proxy to Who's p2p package and offload the encoding to a go microservice
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant