Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

feat: add support for message signing #17

Merged
merged 1 commit into from
May 7, 2019
Merged

Conversation

jacobheun
Copy link
Contributor

BREAKING CHANGE: as .publish should now sign messages (via _buildMessage) it now requires a callback since signing is async. This also adds an options param to the pubsub constructor to allow for disabling signing. While this change shouldnt break things upstream, implementations need to be sure to call _buildMessage for each message they will publish.

Adds signing support (on by default) for #16.

BREAKING CHANGE: as .publish should now sign messages (via _buildMessage) it now requires a callback since signing is async. This also adds an options param to the pubsub constructor to allow for disabling signing. While this change shouldnt break things upstream, implementations need to be sure to call _buildMessage for each message they will publish.
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vasco-santos vasco-santos merged commit f1e1889 into master May 7, 2019
@vasco-santos vasco-santos deleted the feat/signing branch May 7, 2019 10:00
@vasco-santos vasco-santos mentioned this pull request Jul 10, 2019
2 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants