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

Define serialization/deserialization functions for messages in the message layer #280

Closed
Tracked by #278 ...
hannahhoward opened this issue Nov 23, 2021 · 0 comments
Closed
Tracked by #278 ...

Comments

@hannahhoward
Copy link
Collaborator

hannahhoward commented Nov 23, 2021

In the message layer, define a FromNet_1_0 function and a ToNet_1_0 method on message

  • we should maintain two maps of [peer + legacy requestID] -> UUID + UUID -> [peer + legacy requestID]

FromNet_1_0 algorithm:

  • for each legacy ID in the message, check the peer+legacy -> UUID for an existing value. If not, generate a new UUID and write entries in both maps. Use existing UUID if present

ToNet_1_0 algorithm:

  • for each UUID in the message, check the UUID -> peer+legacy ID map for an existing value. If not, generate the new UUID and write entries in both maps. Use existing Peer + legacy request ID if present.
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