Skip to content

Conversation

@Gau-thier
Copy link
Collaborator

@Gau-thier Gau-thier commented May 20, 2022

Context

For some messages, Deku needs to sign the payload

Proposal

Make msg_handler returning a tuple (payload, payload_signature) of type bytes * bytes option

@Gau-thier Gau-thier force-pushed the feat/dekuIntegration branch 2 times, most recently from ed3aa7b to e28d82f Compare May 20, 2022 09:35
@Gau-thier Gau-thier force-pushed the feat/dekuIntegration branch from e28d82f to bbe64b2 Compare May 20, 2022 09:35
val init :
?preprocess:(Message.t -> Message.t) ->
msg_handler:(Message.t -> bytes) ->
msg_handler:(Message.t -> bytes * bytes option) ->
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I though a lot (too much) about this, I think making msg_handler returning a bytes * bytes option (where payload:bytes and payload_signature:bytes option) is the best option.
What do you think @rosalogia?

Copy link
Contributor

Choose a reason for hiding this comment

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

Since responses will become optional as well, it will probably be bytes option * bytes option. I think that's fine!

@Gau-thier Gau-thier requested a review from rosalogia May 31, 2022 15:45
@rosalogia
Copy link
Contributor

Can we merge #33 first? 😅 I don't mind being the one to rebase this PR after that.

@Gau-thier
Copy link
Collaborator Author

Can we merge #33 first? 😅 I don't mind being the one to rebase this PR after that.

Of course 😉

@Gau-thier Gau-thier changed the base branch from main to @rosalogia/gossip-dissemination June 2, 2022 08:41
@Gau-thier Gau-thier changed the base branch from @rosalogia/gossip-dissemination to main June 2, 2022 08:42
@Gau-thier Gau-thier force-pushed the feat/dekuIntegration branch from 8870703 to 595d99c Compare June 2, 2022 12:08
@Gau-thier Gau-thier changed the base branch from main to @rosalogia/gossip-dissemination June 2, 2022 12:08
@Gau-thier Gau-thier force-pushed the feat/dekuIntegration branch from 595d99c to 788e99d Compare June 2, 2022 12:13
@Gau-thier
Copy link
Collaborator Author

Closing in favor of #48

@Gau-thier Gau-thier closed this Jun 2, 2022
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

Successfully merging this pull request may close these issues.

3 participants