Skip to content

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

@hannahhoward

Description

@hannahhoward

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions