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

Craft Hard Specification for Message. #45

Open
1 of 5 tasks
jalcine opened this issue Jan 15, 2015 · 1 comment
Open
1 of 5 tasks

Craft Hard Specification for Message. #45

jalcine opened this issue Jan 15, 2015 · 1 comment

Comments

@jalcine
Copy link
Owner

jalcine commented Jan 15, 2015

In order to ensure a decent level of predictability for (or a lack of the need of)
for messages in Wintermute, this issue (until the release of 0.1.0) serves as a
reference point for what a Message object should initially be in JSON. Things that
base themselves upon a Message like MethodCall and the likes will have their
own implementation but will be contained within a message.

Some things pivotal for a message's integrity:

  • timestamp - The time, in UTC, at which a message was crafted. This doesn't
    represent when it was sent though, not sure if that matters.
  • sender - The information needed to learn about the instance of Wintermute
    that sent this Message. Initially, this was equivalent to a JSON object
    representing a Module::Designation object but more information might be needed.
  • receiver - The information needed to learn about the instance of Wintermute
    to receive this Message. Initially, this was equivalent to a JSON object
    representing a Module::Designation object but more information might be needed.
  • payload - This would be the actual data being sent to the receiver. This
    is expected to be a dictionary, though later implementations might change this.

Proposed Fields

  • flags - An array of text representing fields that were used to modify the
    payload value. Something like this would help with encryption, signing and the likes.
@jalcine
Copy link
Owner Author

jalcine commented Aug 14, 2015

#66 closed out the timestamp field. Now the sender + receiver fields can be done in tandem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant